private CloudQueueMessage ToBinaryCloudQueueMessage(T entity) { var serializedMessage = _customBinarySerializer.Serialize(entity); return(ToBinaryCloudQueueMessage(serializedMessage)); }
private async Task SendRequestAsync(TRequestType requestPayload) { var bytes = _serializer.Serialize(requestPayload); await _communicator.SendMessageAsync(bytes); }