コード例 #1
0
        public async Task Handle(ISentEmail message, IMessageHandlerContext context)
        {
            log.Info($"Email sent, PatientId = {message.PatientId}");
            Data.IsSentEmail = true;
            Thread.Sleep(10000);

            await NotifyPolice(context);
        }
コード例 #2
0
 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;
 }