DiskBlobProvider Class

Namespace:
Weavy.Core.Providers
Assembly:
Weavy.Core.dll

Implementation of the IBlobProvider interface that stores blobs on local disk.

[Guid("CBD1B28A-E443-42E7-9063-0334B62C9A94")]
public class DiskBlobProvider : IBlobProvider, IProvider, IExtension
Inheritance:
System.Object → DiskBlobProvider
Attributes:
System.Runtime.InteropServices.GuidAttribute
Implements:
IBlobProvider, IProvider, IExtension

Constructors

DiskBlobProvider() Initializes a new instance of the DiskBlobProvider class.

Fields

Path Gets the path to the files directory.

Methods

Delete(Blob) Permanently removes blob content from disk.
DownloadTo(Blob, Stream) Downloads the binary data of the specified blob to the specified output stream.
DownloadTo(Blob, Stream, long, long) Downloads a range of bytes from the blob to a destination.
DownloadToAsync(Blob, Stream) Downloads the binary data of the specified blob to the specified output stream.
DownloadToAsync(Blob, Stream, long, long) Writes the binary data of the blob from the provider to the specified output stream.
Exists(Blob) Checks if the specified Blob exists.
Upload(Blob, Stream) Uploads the binary data for the specified blob.
UploadAsync(Blob, Stream) Uploads the binary data for the specified blob.

Extension Methods

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.