/// <inheritdoc /> public Task <PutResult> PutStreamAsync( Context context, ContentHash contentHash, Stream stream, CancellationToken cts, UrgencyHint urgencyHint) { return(Tracer.ContentSessionTracer.PutStreamAsync(new OperationContext(context), contentHash, () => WriteThroughContentSession != null ? WriteThroughContentSession.PutStreamAsync(context, contentHash, stream, cts, urgencyHint) : BackingContentSession.PutStreamAsync(context, contentHash, stream, cts, urgencyHint))); }
/// <inheritdoc /> public Task <PutResult> PutStreamAsync( Context context, HashType hashType, Stream stream, CancellationToken cts, UrgencyHint urgencyHint) { return(PutStreamCall <ContentSessionTracer> .RunAsync(Tracer.ContentSessionTracer, new OperationContext(context), hashType, () => WriteThroughContentSession != null ?WriteThroughContentSession.PutStreamAsync(context, hashType, stream, cts, urgencyHint) : BackingContentSession.PutStreamAsync(context, hashType, stream, cts, urgencyHint))); }
/// <inheritdoc /> public Task <PutResult> PutFileAsync( Context context, ContentHash contentHash, AbsolutePath path, FileRealizationMode realizationMode, CancellationToken cts, UrgencyHint urgencyHint) { return(Tracer.ContentSessionTracer.PutFileAsync(new OperationContext(context), path, realizationMode, contentHash, trustedHash: false, () => WriteThroughContentSession != null ? WriteThroughContentSession.PutFileAsync(context, contentHash, path, realizationMode, cts, urgencyHint) : BackingContentSession.PutFileAsync(context, contentHash, path, realizationMode, cts, urgencyHint))); }