Class VssFactoryProvider
Class that provides instances of IVssFactory which in turn is used as the entry point to accessing the various VSS functions.
Implements
Inherited Members
Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common.dll
Syntax
public class VssFactoryProvider : IVssFactoryProvider
Remarks
This class has a default implementation in Default which is normally used. It will load the correct platform specific dll, assuming it is located in the same
directory as the AlphaVSS.Common
assembly.
To modify this dynamic assembly loading, you can implement IVssAssemblyResolver and pass that as a constructor argument to this class.
Constructors
| Improve this Doc View SourceVssFactoryProvider(IVssAssemblyResolver)
Creates a new instance of VssFactoryProvider.
Declaration
public VssFactoryProvider(IVssAssemblyResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
IVssAssemblyResolver | resolver | The assembly resolver which will be used to load the platform specific AlphaVSS assembly. |
Fields
| Improve this Doc View SourceDefault
The default instance of IVssFactoryProvider. This attempts to load the platform specific AlphaVSS assembly from the same directory that the AlphaVSS.Common assembly is located in.
Declaration
public static readonly IVssFactoryProvider Default
Field Value
Type | Description |
---|---|
IVssFactoryProvider |
Methods
| Improve this Doc View SourceGetVssFactory()
Creates a new instance of IVssFactory corresponding to the current platform by loading the appropriate platform specific assembly, and instantiating the correct implementation of IVssFactory.
Declaration
public IVssFactory GetVssFactory()
Returns
Type | Description |
---|---|
IVssFactory | An instance of IVssFactory. |
Exceptions
Type | Condition |
---|---|
UnsupportedOperatingSystemException | This exception is thrown if running as a 32-bit process on a 64-bit operating system. |