public async Task Handle(ISentEmail message, IMessageHandlerContext context) { log.Info($"Email sent, PatientId = {message.PatientId}"); Data.IsSentEmail = true; Thread.Sleep(10000); await NotifyPolice(context); }
public AccountController(IUserRepository <UserVM> _user, IHttpContextAccessor _httpContextAccessor, IAsyncRepository <RoleVM> roleContext, ISignInRepository <LoginVM> loginContext, ISentEmail sentEmail) { userContext = _user; httpContextAccessor = _httpContextAccessor; this.roleContext = roleContext; this.loginContext = loginContext; this.sentEmail = sentEmail; }