Interface IProductContext
Provides access to information and capabilities for a given Software Potential service Product such as:
See ProductContextFor(String, String) for examples and details of how to obtain an IProductContext.
See For(String) for examples and details of how to obtain an IAgentContext.
Namespace: Sp.Agent
Assembly: Sp.Agent.dll
Properties
Activation
Provides License Activation-related capabilities.
Declaration
IActivateLicenses Activation { get; }
Property Value
Type | Description |
---|---|
IActivateLicenses |
See Also
Features
Provides Feature querying-related capabilities.
Declaration
[Obsolete("This property has been renamed. Please change your code to use the new name: LocalFeatures")]
IQueryFeatures Features { get; }
Property Value
Type | Description |
---|---|
IQueryFeatures |
See Also
Licenses
Provides License querying-related capabilities.
Declaration
IQueryLicenses Licenses { get; }
Property Value
Type | Description |
---|---|
IQueryLicenses |
See Also
LocalFeatures
Provides Feature querying-related capabilities.
Declaration
IQueryLocalFeatures LocalFeatures { get; }
Property Value
Type | Description |
---|---|
IQueryLocalFeatures |
See Also
ProductName
The Product Name string as supplied to ProductContextFor(String, String).
Declaration
string ProductName { get; }
Property Value
Type | Description |
---|---|
System.String |
Examples
"My Product"
See Also
ProductVersion
The Product Version string as supplied to ProductContextFor(String, String).
Declaration
string ProductVersion { get; }
Property Value
Type | Description |
---|---|
System.String |
Examples
"My Version"
See Also
Stores
Provides IActivateLicenses License Store manipulation capabilities.
Declaration
IStoreLicenses Stores { get; }
Property Value
Type | Description |
---|---|
IStoreLicenses |
See Also
UserTokens
Provides access to query-related user capabilities
Declaration
IQueryUserTokens UserTokens { get; }
Property Value
Type | Description |
---|---|
IQueryUserTokens |
UserTokenStore
Provides User Token Store manipulation capabilities.
Declaration
IStoreUserTokens UserTokenStore { get; }
Property Value
Type | Description |
---|---|
IStoreUserTokens |
Methods
Configure(Func<IProductCommenceConfigurationPhase, IProductCompletedConfigurationPhase>)
Enables one to provide a Configuration Expression specifying details of how you wish Licenses to be managed for a given Product+Version.
May only be called a single time per ProductName
/ProductVersion
pair for a given AgentContext
.
Declaration
void Configure(Func<IProductCommenceConfigurationPhase, IProductCompletedConfigurationPhase> composer)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IProductCommenceConfigurationPhase, IProductCompletedConfigurationPhase> | composer | IProductCommenceConfigurationPhase for details of composing a Configuration Expression using the fluent expression composition sequence. |
Remarks
Failing to call Configure()
will result in a Default Configuration being applied at the first point where the any of the following events occur:
- A License is Activated.
Examples
Not calling Configure()
is equivalent to calling it as follows:-
productContext.Configure( options => options
.Activation.Default()
.CompleteWithDefaults() );