コード例 #1
0
        /// <inheritdoc />
        public Task <PutBlobResult> PutBlobAsync(OperationContext context, ContentHash hash, byte[] blob)
        {
            Contract.Assert(AreBlobsSupported, "PutBlobAsync was called and blobs are not supported.");

            return(context.PerformOperationAsync(
                       Tracer,
                       () => _blobAdapter.PutBlobAsync(context, hash, blob),
                       traceOperationStarted: false,
                       counter: Counters[GlobalStoreCounters.PutBlob]));
        }
コード例 #2
0
        /// <inheritdoc />
        public async Task <BoolResult> PutBlobAsync(OperationContext context, ContentHash hash, byte[] blob)
        {
            Contract.Assert(AreBlobsSupported, "PutBlobAsync was called and blobs are not supported.");

            return(await _blobAdapter.PutBlobAsync(context, hash, blob));
        }