/// <summary> /// Run the call. /// </summary> public static async Task <OpenStreamResult> RunAsync( TTracer tracer, OperationContext context, ContentHash contentHash, Func <Task <OpenStreamResult> > funcAsync) { using (var call = new OpenStreamCall <TTracer>(tracer, context, contentHash)) { return(await call.RunSafeAsync(funcAsync)); } }
/// <nodoc /> public static Task <OpenStreamResult> OpenStreamAsync <TTracer>( this TTracer tracer, OperationContext context, ContentHash contentHash, Func <Task <OpenStreamResult> > func) where TTracer : ContentSessionTracer { return(OpenStreamCall <TTracer> .RunAsync(tracer, context, contentHash, func)); }