コード例 #1
0
        private static void InitializeHealthService(ISessionFactory sessionFactory)
        {
            Console.Write("Initializing the health service... ");

            var healthBus = ServiceBusFactory.New(sbc =>
            {
                sbc.UseMsmq();
                sbc.VerifyMsmqConfiguration();
                sbc.UseControlBus();

                sbc.ReceiveFrom(Constants.QueueHealth);
                sbc.UseSubscriptionService(Constants.QueueSubscriptions);
            });

            var healthSagaRepository = new NHibernateSagaRepository<HealthSaga>(sessionFactory);
            var healthService = new HealthService(healthBus, healthSagaRepository);
            healthService.Start();

            Utils.WriteToConsole("done", ConsoleColor.Green);
        }
コード例 #2
0
 public FluxTimeServerClientService(ILogger <FluxTimeServerClientService> logger,
                                    IHttpClientFactory httpClientFactory, ApplicationConfigurationService applicationConfigurationService, HealthService healthService)
 {
     _logger            = logger;
     _httpClientFactory = httpClientFactory;
     _applicationConfigurationService = applicationConfigurationService;
     _healthService = healthService;
 }
コード例 #3
0
 // We don't need to implement if this is only used to build SQL queries.
 public static bool HasSpeciality(this HealthService healthService, string specialityId)
 {
     return(false);
 }
コード例 #4
0
 public LogEventController(HealthService healthService, LogEventService logEventService)
 {
     this.healthService   = healthService;
     this.logEventService = logEventService;
 }
コード例 #5
0
 public HealthEndpointTests()
 {
     _healthService = new HealthService(Configuration);
 }