public override Stream GetBlobStream(Guid blobId, CallContext context) { Assert.ArgumentNotNull(context, "context"); if (!_externalBlobStorageProviderConfigured) { return(base.GetBlobStream(blobId, context)); } var memoryStream = new MemoryStream(); _blobStorageProvider.Get(memoryStream, blobId.ToString()); // Note: If blob stream not found from the external storage then fall-back to default one return(memoryStream.Length > 0 ? memoryStream : base.GetBlobStream(blobId, context)); }