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