Пример #1
0
 public LoaderHostedService(
     IHostApplicationLifetime applicationLifetime,
     ILogger <LoaderHostedService> logger,
     IContextFactory <PortfolioDbContext> contextFactory,
     ISecurityQueryService queryService)
 {
     _applicationLifetime = applicationLifetime
                            ?? throw new ArgumentNullException(nameof(applicationLifetime));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _contextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory));
     _queryService   = queryService ?? throw new ArgumentNullException(nameof(queryService));
 }
 public UserController(ISecurityQueryService securityQueryService, IAppRepository appRepository)
 {
     _securityQueryService = securityQueryService;
     _appRepository        = appRepository;
 }