public ServerLifecycleManager(StartupConfiguration startupConfiguration) { SetApplicationDirectory(); _writer = startupConfiguration.Writer; _serverEnvironmentPreparer = startupConfiguration.ServerEnvironmentPreparer; _startUpDirectory = startupConfiguration.Directory; _startupResourceCatalogFactory = startupConfiguration.ResourceCatalogFactory; _ipcClient = startupConfiguration.IpcClient; _assemblyLoader = startupConfiguration.AssemblyLoader; _pulseLogger = new PulseLogger(60000).Start(); _pulseTracker = new PulseTracker(TimeSpan.FromDays(1).TotalMilliseconds).Start(); _serverEnvironmentPreparer.PrepareEnvironment(); _startWebServer = startupConfiguration.StartWebServer; _webServerConfiguration = startupConfiguration.WebServerConfiguration; _loggingProcessMonitor = startupConfiguration.LoggingServiceMonitor; _loggingProcessMonitor.OnProcessDied += (e) => _writer.WriteLine("logging service exited"); _queueProcessMonitor = startupConfiguration.QueueWorkerMonitor; _queueProcessMonitor.OnProcessDied += (config) => _writer.WriteLine($"queue process died: {config.Name}({config.Id})"); _webSocketPool = startupConfiguration.WebSocketPool; SecurityIdentityFactory.Set(startupConfiguration.SecurityIdentityFactory); }
public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool) { _webSocketPool = webSocketPool; _serializer = serializer; _executionLogLevel = Config.Server.ExecutionLogLevel; }
public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool, IDev2WorkflowSettings settings) { _webSocketPool = webSocketPool; _serializer = serializer; _executionLogLevel = settings.ExecutionLogLevel; }
IStateAuditLogger GetIAuditStateLogger(IWebSocketPool webSocketPool) => new StateAuditLogger(webSocketPool);
void TestAuditSetupWithAssignedInputs(Guid resourceId, string workflowName, out IStateAuditLogger auditStateLogger, out Mock <IDev2Activity> activity, IWebSocketPool webSocketPool) { GetMockedDataObject(resourceId, workflowName, out activity, out Mock <IDSFDataObject> mockedDataObject); auditStateLogger = GetIAuditStateLogger(webSocketPool); }
public IExecutionLogPublisher New(ISerializer serializer, IWebSocketPool webSocketPool) { return(new ExecutionLogger(serializer, webSocketPool)); }
public ExecutionLogger(ISerializer serializer, IWebSocketPool webSocketPool) : base(serializer, webSocketPool) { }
public StateAuditLogger(IWebSocketPool webSocketFactory) { _webSocketFactory = webSocketFactory; }
public GetLogDataService(IWebSocketPool webSocketFactory, TimeSpan waitTimeOut) { _webSocketPool = webSocketFactory; _waitTimeOut = waitTimeOut; }
public StateAuditLogger(IWebSocketPool webSocketFactory) { _webSocketFactory = webSocketFactory; _ws = webSocketFactory.Acquire(Config.Auditing.Endpoint); _ws.Connect(); }
public GetExecutionHistory(IWebSocketPool webSocketFactory, TimeSpan waitTimeOut) { _webSocketPool = webSocketFactory; _waitTimeOut = waitTimeOut; }
public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool) { _webSocketPool = webSocketPool; _serializer = serializer; }