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