Exemplo n.º 1
0
        public static void HandleProcessStateInfo(ProcessStateInfo processStateInfo, PipeClientBase client)
        {
            switch (processStateInfo.State)
            {
            case PipeProcessState.Stop:
                StsServer.Shutdown();
                break;

            default:
                Log.Message(LogTypes.Warning, $"Received unhandled process state '{processStateInfo.State}' from '{processStateInfo.Alias}'.");
                break;
            }
        }
Exemplo n.º 2
0
        public static void HandleProcessStateInfo(ProcessStateInfo processStateInfo, IPCSession session)
        {
            switch (processStateInfo.State)
            {
            // TODO: Implement on childs. Called in ConsoleManager.Stop for now.
            case ProcessState.Stopped:
                ConsoleManager.RemoveConsoleClient(processStateInfo.Alias);
                break;

            default:
                Log.Message(LogTypes.Error, $"Received unhandled process state '{processStateInfo.State}' from '{processStateInfo.Alias}'.");
                break;
            }
        }
Exemplo n.º 3
0
        public static void HandleProcessStateInfo(ProcessStateInfo processStateInfo, IPCSession session)
        {
            switch (processStateInfo.State)
            {
            // TODO: Implement on childs. Called in ConsoleManager.Stop for now.
            case PipeProcessState.Started:
                Log.NewLine();
                Log.Message(LogTypes.Info, $"'{processStateInfo.Alias}' successfully started.");
                break;

            case PipeProcessState.Stopped:
                ConsoleServiceManager.RemoveConsoleClient(processStateInfo.Alias);
                break;

            default:
                Log.Message(LogTypes.Warning, $"Received unhandled process state '{processStateInfo.State}' from '{processStateInfo.Alias}'.");
                break;
            }
        }