Interface IProductActivationTransmissionHooksConfigurationPhase
Part of Fluent Syntax flow used to build the composer
argument of WithTransmission(Func<IProductActivationTransmissionCommenceConfigurationPhase, IProductActivationTransmissionCompletedConfigurationPhase>).
Enables one to specify a callback which will be invoked prior to each and every Activation Request transmission attempt triggered via IActivateLicenses.
Namespace: Sp.Agent.Configuration.Product.Activation
Assembly: Sp.Agent.dll
Methods
BeforeEachAttempt(Action<IActivationAttemptContext>)
Allows one to indicate the callback to be triggered prior to the transmission of any attempted Activation Request triggered via IActivateLicenses should be submitted.
The supplied Action
can customize the transmission process via the supplied IActivationAttemptContext.
Declaration
IProductActivationTransmissionProxyConfigurationPhase BeforeEachAttempt(Action<IActivationAttemptContext> beforeEachAttemptAction)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IActivationAttemptContext> | beforeEachAttemptAction |
- customize the transmission process by altering properties on the Web Request about to be transmitted. - Update progress indicators etc. |
Returns
Type | Description |
---|---|
IProductActivationTransmissionProxyConfigurationPhase | The next phase of the Fluent Syntax chain. |
Remarks
Whether or not a given attempt should proceed or not can be controlled via WithRetryPolicy(Func<Exception, Int32, Boolean>).