public async Task SendToConnection(SendToConnection webPubSubEvent) { var content = RequestContent.Create(webPubSubEvent.Message); var contentType = Utilities.GetContentType(webPubSubEvent.DataType); await _client.SendToConnectionAsync(webPubSubEvent.ConnectionId, content, contentType).ConfigureAwait(false); }