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