Table of Contents

Class ProviderFactory

Namespace
CloudStorageORM.Providers
Assembly
CloudStorageORM.dll

Creates storage provider implementations from validated CloudStorageORM options.

public static class ProviderFactory
Inheritance
ProviderFactory
Inherited Members

Methods

GetStorageProvider(CloudStorageOptions)

Resolves the correct IStorageProvider implementation for the configured cloud provider.

public static IStorageProvider GetStorageProvider(CloudStorageOptions options)

Parameters

options CloudStorageOptions

Validated CloudStorageORM options that describe which provider to create.

Returns

IStorageProvider

A storage provider instance matching options.

Examples

var provider = ProviderFactory.GetStorageProvider(options);

Exceptions

NotSupportedException

Thrown when the configured provider is not supported.