Пример #1
0
 private async Task WriteString(ClientConnection connection, string data)
 {
     await connection.WriteStringAsync(data, CancellationToken);
 }
Пример #2
0
 private async Task WriteGuid(ClientConnection connection)
 {
     await connection.WriteStringAsync(Guid.ToString(), CancellationToken);
 }
Пример #3
0
 private async Task WriteDataLength(ClientConnection connection, int dataLength)
 {
     await connection.WriteInt32Async(dataLength, CancellationToken);
 }
Пример #4
0
 private async Task WriteCommandCode(ClientConnection connection, CommandCodeEn commandCode)
 {
     await connection.WriteByteAsync((byte)commandCode, CancellationToken);
 }
Пример #5
0
 private async Task WriteHeader(ClientConnection connection)
 {
     await connection.WriteStringAsync(_messageCaption, CancellationToken);
 }
Пример #6
0
 public JoinChatRoom(ChatServer server, ClientConnection client) : base(server, client)
 {
     //
 }
Пример #7
0
 public TerminateClient(ChatServer server, ClientConnection client) : base(server, client)
 {
     //
 }
Пример #8
0
 public Services(ChatServer server, ClientConnection client)
 {
     _client = client;
     _server = server;
 }