fengling-risk-control/Fengling.RiskControl.Domain/Events/RiskAssessmentRequestedEvent.cs

25 lines
768 B
C#

using MediatR;
namespace Fengling.RiskControl.Domain.Events;
public class RiskAssessmentRequestedEvent : INotification
{
public long MemberId { get; }
public string EntityType { get; }
public string EntityId { get; }
public string ActionType { get; }
public Dictionary<string, object> Context { get; }
public DateTime RequestedAt { get; }
public RiskAssessmentRequestedEvent(long memberId, string entityType, string entityId,
string actionType, Dictionary<string, object>? context = null)
{
MemberId = memberId;
EntityType = entityType;
EntityId = entityId;
ActionType = actionType;
Context = context ?? new Dictionary<string, object>();
RequestedAt = DateTime.UtcNow;
}
}