Esempio n. 1
0
 public ServerLauncherHealthMonitoring(IOptions <OWSInstanceLauncherOptions> OWSInstanceLauncherOptions, IHttpClientFactory httpClientFactory, IZoneServerProcessesRepository zoneServerProcessesRepository,
                                       IOWSInstanceLauncherDataRepository owsInstanceLauncherDataRepository)
 {
     _OWSInstanceLauncherOptions        = OWSInstanceLauncherOptions;
     _httpClientFactory                 = httpClientFactory;
     _zoneServerProcessesRepository     = zoneServerProcessesRepository;
     _owsInstanceLauncherDataRepository = owsInstanceLauncherDataRepository;
 }
Esempio n. 2
0
        public ServerLauncherMQListener(IOptions <OWSInstanceLauncherOptions> OWSInstanceLauncherOptions, IOptions <APIPathOptions> OWSAPIPathOptions, IHttpClientFactory httpClientFactory, IZoneServerProcessesRepository zoneServerProcessesRepository,
                                        IOWSInstanceLauncherDataRepository owsInstanceLauncherDataRepository)
        {
            _OWSInstanceLauncherOptions        = OWSInstanceLauncherOptions;
            _OWSAPIPathOptions                 = OWSAPIPathOptions;
            _httpClientFactory                 = httpClientFactory;
            _zoneServerProcessesRepository     = zoneServerProcessesRepository;
            _owsInstanceLauncherDataRepository = owsInstanceLauncherDataRepository;
            _customerGUID  = new Guid(OWSInstanceLauncherOptions.Value.OWSAPIKey);
            _worldServerId = GetWorldServerID();

            InitRabbitMQ();
        }