Class DistributorDisableStorageExtensions
Enables one to opt out of local or removable storage when using Sp.Agent.Distributor to consume Licenses (via WithDistributor(IAgentDistributorsConfigurationPhase, Func<IDistributorCommenceConfigurationPhase, IDistributorCompletedConfigurationPhase>)).
Namespace: Sp.Agent.Configuration
Assembly: Sp.Agent.Distributor.dll
Methods
DisableStorage(IAgentCommenceConfigurationPhase)
Disables all local bound and Removable storage. Typically used in conjunction with Sp.Agent.Distributor's WithDistributor(IAgentDistributorsConfigurationPhase, Func<IDistributorCommenceConfigurationPhase, IDistributorCompletedConfigurationPhase>) mode.
NB: This will disable Distributor Checkout functionality and the ability to install local bound licenses.
NB: Also precludes the use of Removable Stores.
Declaration
public static IAgentDistributorsConfigurationPhase DisableStorage(this IAgentCommenceConfigurationPhase that)
Parameters
Type | Name | Description |
---|---|---|
IAgentCommenceConfigurationPhase | that |
Returns
Type | Description |
---|---|
IAgentDistributorsConfigurationPhase | A reference to the next phase of the configuration pipeline. |
Examples
AgentContext.For( "abc12" )
.Configure( agent => agent
.DisableStorage()
.WithDistributor( distributor => distributor
.WithDiscovery( () => baseUri )
.CompleteWithDefaults())
.CompleteWithDefaults() );