コード例 #1
0
 public UserController(IHttpContextAccessor httpContextAccessor,
                       IQueryableDomainService <User, int> userQueryableDomainService,
                       ICommandDomainServiceAsync <User> userCommandDomainServiceAsync
                       , IExceptionHandler exceptionHandler
                       , IConfiguration configuration
                       , ITokenManager tokenManager)
 {
     _user = httpContextAccessor.HttpContext.User;
     _userQueryableDomainService    = userQueryableDomainService;
     _userCommandDomainServiceAsync = userCommandDomainServiceAsync;
     _exceptionHandler = exceptionHandler;
     _configuration    = configuration;
     _tokenManager     = tokenManager;
 }
 public LoanController(IHttpContextAccessor httpContextAccessor
                       , IQueryableDomainService <Loan, int> loanQueryableDomainService
                       , ICommandDomainServiceAsync <Loan> loanCommandDomainServiceAsync
                       , IExceptionHandler exceptionHandler
                       , IConfiguration configuration
                       , ITokenManager tokenManager
                       , IHttpClientFactory httpClientFactory)
 {
     _user = httpContextAccessor.HttpContext.User;
     _loanQueryableDomainService    = loanQueryableDomainService;
     _loanCommandDomainServiceAsync = loanCommandDomainServiceAsync;
     _exceptionHandler  = exceptionHandler;
     _configuration     = configuration;
     _tokenManager      = tokenManager;
     _httpClientFactory = httpClientFactory;
 }
 public RestfulAPICommand(ICommandDomainServiceAsync <TEntity> commandDomainServiceAsync)
 {
     ContractUtility.Requires <ArgumentNullException>(commandDomainServiceAsync != null, "commandDomainService instance cannot be null");
     _commandDomainServiceAsync = commandDomainServiceAsync;
 }