// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServerStatusService serverStatusService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseCors(CorsPolicy); app.Use(async(context, next) => { serverStatusService.Bump(); await next(); }); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "SoapyBackend v1")); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public Client(IClientService clientService, IConfiguration configuration, IServerStatusService serverStatusService, ILog log) { State = State.Instanciated; _clientService = clientService; _configuration = configuration; _serverStatusService = serverStatusService; _log = log; }
public ActionTriggerClient(IClientService clientService, IConfiguration configuration, IServerStatusService serverStatusService, IActionServiceHost actionServiceHost, IActionRegistry actionRegistry, ILog log) : base(clientService, configuration, serverStatusService, log) { _actionServiceHost = actionServiceHost; _actionRegistry = actionRegistry; Triggers = new List<Trigger>(); }
public WorkerClient(IClientService clientService, IConfiguration configuration, IServerStatusService serverStatusService, IWorkflowEngine workflowEngine, ILog log, IWorkerLockManager workerLockManager, IWorkerServiceHost workerServiceHost) : base(clientService, configuration, serverStatusService, log) { _workflowEngine = workflowEngine; _workerLockManager = workerLockManager; _workerServiceHost = workerServiceHost; }
public EventhandlerClient(IClientService clientService, IConfiguration configuration, IServerStatusService serverStatusService, ILog log, IEventhandlingServiceHost eventhandlingServiceHost, IEventHandlingService eventHandlingService, IEventhandlingLockManager eventhandlingLockManager) : base(clientService, configuration, serverStatusService, log) { _eventhandlingServiceHost = eventhandlingServiceHost; _eventHandlingService = eventHandlingService; _eventhandlingLockManager = eventhandlingLockManager; }
protected SessionManager(ISessionFactory nhibernateSessionFactory, IGlobalSettingsService globalSettingsService, IHmaService hmaService, int serverId, Provider provider, IServerStatusService serverStatusService) { NhibernateSessionFactory = nhibernateSessionFactory; GlobalSettingsService = globalSettingsService; _hmaService = hmaService; _serverId = serverId; _provider = provider; _serverStatusService = serverStatusService; Mediator.Instance.OnSessionPause += (s, e) => { OnSessionPaused(s, e.Provider); }; }
public Context(GlobalSettings globalSettings, Account account, IWebDriver driver, IList<Domain> domains, ISessionFactory nhibernateSessionFactory, Provider provider, IList<string> accountFolderNames, EngagementSession engagementSession, IServerStatusService serverStatusService) { GlobalSettings = globalSettings; Account = account; Driver = driver; NhibernateSessionFactory = nhibernateSessionFactory; this.provider = provider; ManualReset = new ManualResetEvent(false); AccountFolderNames = accountFolderNames; InboxEngageCounts = new Dictionary<string, int>(); JunkEngageCounts = new Dictionary<string, int>(); EngagementSession = engagementSession; _serverStatusService = serverStatusService; foreach (var domain in domains) { domain.GenerateBernoullis(); } Domains = domains; }
public StatusController(IServerStatusService serverStatusService) { _serverStatusService = serverStatusService; }
public HotmailSessionManager(ISessionFactory nhibernateSessionFactory, IGlobalSettingsService globalSettingsService, IHmaService hmaService, int serverId, IServerStatusService serverStatusService) : base(nhibernateSessionFactory, globalSettingsService, hmaService, serverId, Provider.Hotmail,serverStatusService) { }
public ServerStatusAppService(IServerStatusService serverStatusService) : base(serverStatusService) { this.serverStatusService = serverStatusService; }
public MainController(IServerStatusService status) { _status = status; }