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