/// <nodoc /> public static Task <PutResult> PutFileAsync <TTracer>( this TTracer tracer, OperationContext context, AbsolutePath path, FileRealizationMode mode, HashType hashType, bool trustedHash, Func <Task <PutResult> > func) where TTracer : ContentSessionTracer { return(PutFileCall <TTracer> .RunAsync(tracer, context, path, mode, hashType, trustedHash, func)); }
/// <summary> /// Run the call. /// </summary> public static async Task <PutResult> RunAsync( TTracer tracer, OperationContext context, AbsolutePath path, FileRealizationMode mode, ContentHash contentHash, bool trustedHash, Func <Task <PutResult> > funcAsync) { using (var call = new PutFileCall <TTracer>(tracer, context, path, mode, contentHash, trustedHash: trustedHash)) { return(await call.RunSafeAsync(funcAsync)); } }