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; }
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 ) ); }