Пример #1
0
 /// <summary>
 ///     Run the call.
 /// </summary>
 public static async Task <PutResult> RunAsync(
     TTracer tracer, OperationContext context, ContentHash contentHash, Func <Task <PutResult> > funcAsync)
 {
     using (var call = new PutStreamCall <TTracer>(tracer, context, contentHash))
     {
         return(await call.RunSafeAsync(funcAsync));
     }
 }
Пример #2
0
 /// <nodoc />
 public static Task <PutResult> PutStreamAsync <TTracer>(
     this TTracer tracer,
     OperationContext context,
     HashType hashType,
     Func <Task <PutResult> > func) where TTracer : ContentSessionTracer
 {
     return(PutStreamCall <TTracer> .RunAsync(tracer, context, hashType, func));
 }