Class HardwareStoreConfigurationExtensions
Provides extension methods for IAgentHardwareBoundStorageConfigurationPhase relevant to Hardware Locked licensed applications with licenses being stored on the associated machine.
Namespace: Sp.Agent.Configuration
Assembly: Sp.Agent.Hardware.dll
Methods
WithHardwareBoundStorage(IAgentHardwareBoundStorageConfigurationPhase, String, Action<DirectoryInfo>)
Specifies a function to be used to configure Storage location for the Hardware store.
Declaration
public static IAgentExternalStorageConfigurationPhase WithHardwareBoundStorage(this IAgentHardwareBoundStorageConfigurationPhase that, string rootPath, Action<DirectoryInfo> initialize)Parameters
| Type | Name | Description | 
|---|---|---|
| IAgentHardwareBoundStorageConfigurationPhase | that | |
| System.String | rootPath | |
| System.Action<System.IO.DirectoryInfo> | initialize | 
Returns
| Type | Description | 
|---|---|
| IAgentExternalStorageConfigurationPhase | 
Examples
            AgentContext.For( "abc12" )
                .Configure( agent => agent
                    .WithLocalStorage(...) // or DisableLocalBoundStorage()
                    .WithHardwareBoundStorage(rootPath, dirInfo => InitializeDirectory(dirInfo))
                    .DisableExternalStorage()
                    .CompleteWithDefaults() );