| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | namespace Ice.Internal; |
| | 4 | |
|
| | 5 | | public sealed class ProcessI : Ice.ProcessDisp_ |
| | 6 | | { |
| 1 | 7 | | public ProcessI(Ice.Communicator communicator) => _communicator = communicator; |
| | 8 | |
|
| 1 | 9 | | public override void shutdown(Ice.Current current) => _communicator.shutdown(); |
| | 10 | |
|
| | 11 | | public override void writeMessage(string message, int fd, Ice.Current current) |
| | 12 | | { |
| | 13 | | switch (fd) |
| | 14 | | { |
| | 15 | | case 1: |
| | 16 | | { |
| 0 | 17 | | Console.Out.WriteLine(message); |
| 0 | 18 | | break; |
| | 19 | | } |
| | 20 | | case 2: |
| | 21 | | { |
| 0 | 22 | | Console.Error.WriteLine(message); |
| | 23 | | break; |
| | 24 | | } |
| | 25 | | } |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | private readonly Ice.Communicator _communicator; |
| | 29 | | } |