private async Task SendMessageAsync(RequestMessage message) { if (_sessionEnabled) { message = RebuildSessionMessage(message); } var serializedMsg = _messageSerializer.SerializeMessage(message); await _webSocketConnection.SendMessageAsync(serializedMsg).ConfigureAwait(false); }
private static void DispatchMessageInternal(Message message, IMessageSerializer messageSerializer) { messageSerializer.SerializeMessage(message); }