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); }
public FluxTimeServerClientService(ILogger <FluxTimeServerClientService> logger, IHttpClientFactory httpClientFactory, ApplicationConfigurationService applicationConfigurationService, HealthService healthService) { _logger = logger; _httpClientFactory = httpClientFactory; _applicationConfigurationService = applicationConfigurationService; _healthService = healthService; }
// 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); }
public LogEventController(HealthService healthService, LogEventService logEventService) { this.healthService = healthService; this.logEventService = logEventService; }
public HealthEndpointTests() { _healthService = new HealthService(Configuration); }