public ExampleStartupHostedService(
     ILogger <ExampleStartupHostedService> logger,
     StartupHostedServiceHealthCheck startupHostedServiceHealthCheck)
 {
     _logger = logger;
     _startupHostedServiceHealthCheck = startupHostedServiceHealthCheck;
 }
Exemplo n.º 2
0
        public OrderSubscriber(
            ICommandQueueClient commandQueueClient,
            IAggregateReader <Domain.Aggregate.Order> aggregateReader,
            IEnumerable <ISubscriber <ICommand, IEvent> > subscribers,
            StartupHostedServiceHealthCheck startupHostedServiceHealthCheck)
        {
            _commandQueueClient = commandQueueClient;
            _aggregateReader    = aggregateReader;

            _commandToSubscriberDictionary = subscribers
                                             .GroupBy(s => s.CommandType)
                                             .ToDictionary(s => s.Key.Name, s => s.ToList());

            _startupHostedServiceHealthCheck = startupHostedServiceHealthCheck;
        }
Exemplo n.º 3
0
 public StartupHostedService(ILogger <StartupHostedService> logger, StartupHostedServiceHealthCheck healthCheck)
 {
     _logger = logger;
     _startupHostedServiceHealthCheck = healthCheck;
 }
Exemplo n.º 4
0
 public VerController(StartupHostedServiceHealthCheck healthCheck, IOptions <HealthCheckPublisherOptions> options)
 {
     healthCheck.StartupTaskCompleted = true;
     var healthOpt = options.Value;
 }