コード例 #1
0
 public DomainNotificationEvent(
     IUserSessionInfo userSessionInfo,
     IGlobalizationInfo globalizationInfo,
     DomainNotificationEventTypeEnum domainNotificationEventType,
     string sender,
     string code,
     string message
     ) : base(userSessionInfo, globalizationInfo, null)
 {
     DomainNotificationEventType = domainNotificationEventType;
     Sender  = sender;
     Code    = code;
     Message = message;
 }
コード例 #2
0
 protected async Task SendDomainNotification(
     DomainNotificationEventTypeEnum domainNotificationEventType,
     string code,
     string message
     )
 {
     await InMemoryBus.SendEventAsync(
         new DomainNotificationEvent(
             userSessionInfo : UserSessionInfo,
             globalizationInfo : GlobalizationInfo,
             domainNotificationEventType : domainNotificationEventType,
             sender : typeof(TAggregationRoot).FullName,
             code : code,
             message : message
             )
         );
 }