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 : ILocalBlobProvider, IBlobProvider, IProvider, IExtension
Inheritance:
System.Object → DiskBlobProvider
Attributes:
System.Runtime.InteropServices.GuidAttribute
Implements:
ILocalBlobProvider, IBlobProvider, IProvider, IExtension

Constructors

DiskBlobProvider()

Properties

FilesDirectory Gets the path to the files directory

Methods

Delete(Blob) Permanently removes blob data from disk.
DownloadData(Blob, Stream) Downloads the binary data of the specified blob to the specified output stream.
GetData(Blob) Returns the location of the specified Blob object. If the blob does not exists in the provider, System.IO.FileInfo.Exists will return false.
HasData(Blob) Checks if the specified Blob exists.
Initialize(NameValueCollection) Initializes the provider with the specified configuration settings.
UploadData(Blob, Stream) Uploads the binary data for the specified blob.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, 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.