Interface IInitializeStores
Provides access to Store Initialization facilities.
These Apis apply to Configured License Stores that have an Initialization or Verification aspect. Examples of such Stores include the Local Store (when configured using .WithApplicationInitializedStore()
).
See the IStoreLicenses.Initialization()
extension method in the Sp.Agent.Configuration
namespace for the relevant navigation path.
Namespace: Sp.Agent.Configuration
Assembly: Sp.Agent.dll
Methods
Initialize()
Attempts to Initialize all configured Initializable Stores for this product.
Examples of such Stores include the Local Store (when configured using .WithApplicationInitializedStore()
).
Typically, this activity should only be triggered when running with elevated privileges under the control of an Installation program.
Declaration
void Initialize()
See Also
Uninitialize()
Attempts to Reverse the Initialize()
process for configured Initializable Stores for this product.
Typically, this activity should only be triggered when running with elevated privileges under the control of an Installation program.
Stores may throw Exceptions if such an action would be destructive (e.g. if there are Install()
ed Licenses that have not yet been Delete()
d.
Declaration
void Uninitialize()
See Also
Verify()
Verifies that any Initialize()
process applicable to the configured Initializable Stores for this product has taken place.
This check should be triggered unconditionally on application startup at all times.
Yields an Exception if the postconditions of the Initialize()
method have not been fulfilled on any configured store.
Declaration
void Verify()
Exceptions
Type | Condition |
---|---|
WritingStorageInaccessibleException | Thrown if a Store is found not to be in an appropriate |