Search Results for

Show / Hide Table of Contents

# Class ProviderFactory

Static factory for IUploaderProvider. The default provider is FileSystemProvider, but applications can replace it with a custom implementation.

##### Inheritance

object
ProviderFactory

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: AjaxUploader.Providers

###### Assembly: AjaxUploader.dll

##### Syntax

    public static class ProviderFactory

### Methods

#### GetProvider()

Gets the current provider instance, creating the default file-system provider when needed. The same provider instance is reused until SetProvider(IUploaderProvider) replaces it.

##### Declaration

    public static IUploaderProvider GetProvider()

##### Returns

Type | Description
--- | ---
IUploaderProvider |

#### SetProvider(IUploaderProvider)

Replaces the current provider with a custom implementation. This is typically called during application startup.

##### Declaration

    public static void SetProvider(IUploaderProvider provider)

##### Parameters

Type | Name | Description
--- | --- | ---
IUploaderProvider | provider |