Beispiel #1
0
        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);
        }
Beispiel #2
0
 public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool)
 {
     _webSocketPool     = webSocketPool;
     _serializer        = serializer;
     _executionLogLevel = Config.Server.ExecutionLogLevel;
 }
Beispiel #3
0
 public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool, IDev2WorkflowSettings settings)
 {
     _webSocketPool     = webSocketPool;
     _serializer        = serializer;
     _executionLogLevel = settings.ExecutionLogLevel;
 }
Beispiel #4
0
 IStateAuditLogger GetIAuditStateLogger(IWebSocketPool webSocketPool) => new StateAuditLogger(webSocketPool);
Beispiel #5
0
 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);
 }
Beispiel #6
0
 public IExecutionLogPublisher New(ISerializer serializer, IWebSocketPool webSocketPool)
 {
     return(new ExecutionLogger(serializer, webSocketPool));
 }
Beispiel #7
0
 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;
 }
Beispiel #10
0
 public StateAuditLogger(IWebSocketPool webSocketFactory)
 {
     _webSocketFactory = webSocketFactory;
     _ws = webSocketFactory.Acquire(Config.Auditing.Endpoint);
     _ws.Connect();
 }
 public GetExecutionHistory(IWebSocketPool webSocketFactory, TimeSpan waitTimeOut)
 {
     _webSocketPool = webSocketFactory;
     _waitTimeOut   = waitTimeOut;
 }
Beispiel #12
0
 public NetworkLogger(ISerializer serializer, IWebSocketPool webSocketPool)
 {
     _webSocketPool = webSocketPool;
     _serializer    = serializer;
 }