示例#1
0
 public AccountController(IFileProxy fileProxy, IOtpProxy otpProxy, ISmsSender smsSender, IStaffMemberProxy staffProxy, IEmailSender emailSender, IAccountProxy accountProxy)
 {
     _fileProxy    = fileProxy;
     _otpProxy     = otpProxy;
     _smsSender    = smsSender;
     _staffProxy   = staffProxy;
     _emailSender  = emailSender;
     _accountProxy = accountProxy;
 }
示例#2
0
 public Task Initialize(AccountType type)
 {
     _account = type switch
     {
         AccountType.Local => (IAccountProxy)GrainFactory.GetGrain <ILocalAccount>(this.GetPrimaryKey()),
         AccountType.Remote => (IAccountProxy)GrainFactory.GetGrain <IRemoteAccount>(this.GetPrimaryKey()),
         _ => throw new ArgumentOutOfRangeException(nameof(type), type, null)
     };
     return(Task.CompletedTask);
 }
示例#3
0
 public AccountController(IOtpProxy otpProxy,
                          ISmsSender smsSender, IEmailSender emailSender,
                          IAccountProxy accountProxy, IClientProxy clientProxy,
                          IPasswordProtectionService protectionService)
 {
     _otpProxy          = otpProxy;
     _smsSender         = smsSender;
     _emailSender       = emailSender;
     _accountProxy      = accountProxy;
     _clientProxy       = clientProxy;
     _protectionService = protectionService;
 }
 public BiometricsController(IAccountProxy accountProxy, IFileProxy fileProxy, IBiometricValidator biometricValidator)
 {
     _accountProxy       = accountProxy;
     _fileProxy          = fileProxy;
     _biometricValidator = biometricValidator;
 }
示例#5
0
 public OrderController(IOrderProxy oSvc, IAccountProxy acctSvc, ILogger <HomeController> logger)
 {
     _oSvc    = oSvc;
     _acctSvc = acctSvc;
     _logger  = logger;
 }
 public AccountController(IAccountProxy accSvc, IOrderProxy oSvc, ILogger <HomeController> logger)
 {
     _acctSvc  = accSvc;
     _orderSvc = oSvc;
     _logger   = logger;
 }