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