Esempio n. 1
0
 public override async Task Send(IRequest request,
                                 CancellationToken cancelToken = default(CancellationToken))
 {
     if (request == null)
     {
         throw new ArgumentNullException(nameof(request));
     }
     using (Decorated.Bench(
                startMessage:
                "Writes: " + (request is IWrite) + ", Data: " +
                JsonConvert.SerializeObject(request, JsonSerializerSettings),
                caller: "RequestAsync" + ": " + request.GetType()))
         await base.Send(request, cancelToken).ConfigureAwait(false);
 }