Interface IAgentCommenceConfigurationPhase
Commences the Software Potential Agent configuration pipeline.
Each specific application style/environment provides appropriate Extension Methods on this interface to provide an appropriate subset of customization options.
Following the fluent configuration sequence should yield a IAgentCompletedConfigurationPhase, which the IAgentContext .Configure( Func<IAgentCommenceConfigurationPhase, IAgentCompletedConfigurationPhase> )
or .EnsureConfigured( Func<IAgentCommenceConfigurationPhase, IAgentCompletedConfigurationPhase>)
extension method expects.
NB IntelliSense will not offer any methods until you add a Reference to an appropriate environment layer such as Sp.Agent.Crm.dll
.
Namespace: Sp.Agent.Configuration
Assembly: Sp.Agent.dll
Remarks
Using the Sp.Agent.Configuration.Internal
namespace opens access to low-level customization Apis. Typically one should be using an appropriate environment layer such as Sp.Agent.Crm.dll
.
Examples
using Sp.Agent.Configuration;
using Sp.Agent.Configuration.Internal;
var context = AgentContext.For( "abc12" );
context.Configure( x=> x.Configure( x=>x.CompleteWithDefaults() ) );
Methods
DisableLocalBoundStorage()
Skips configuration of any license storage that binds licenses to the local execution environment. Used if all licenses will be sourced from HardwareBound, Removable or Distributed storage.
NB: Disabling local bound storage will disable Checkout functionality for Distributor.
Declaration
IAgentExternalStorageConfigurationPhase DisableLocalBoundStorage()
Returns
Type | Description |
---|---|
IAgentExternalStorageConfigurationPhase | A reference to the next phase of the configuration pipeline. |
Examples
AgentContext.For( "abc12" )
.Configure( agent => agent
.WithLocalBoundStorageDisabled()
.WithRemovableStorageDiscovery( () => SearchForRemovables() )
.WithDistributor( distributor => distributor
.WithDiscovery( () => baseUri )
.CompleteWithDefaults())
.CompleteWithDefaults() );
See Also
DisableLocalStore()
Skips configuration of any license storage that binds licenses to the local execution environment. Used if all licenses will be sourced from HardwareBound, Removable or Distributed storage.
NB: Disabling local bound storage will disable Checkout functionality for Distributor.
Declaration
IAgentHardwareBoundStorageConfigurationPhase DisableLocalStore()
Returns
Type | Description |
---|---|
IAgentHardwareBoundStorageConfigurationPhase | A reference to the next phase of the configuration pipeline. |
Examples
AgentContext.For( "abc12" )
.Configure( agent => agent
.WithLocalBoundStorageDisabled()
.WithHardwareBoundStorage(rootpath, dir => Initialize(dir))
.WithRemovableStorageDiscovery( () => SearchForRemovables() )
.WithDistributor( distributor => distributor
.WithDiscovery( () => baseUri )
.CompleteWithDefaults())
.CompleteWithDefaults() );