StatusCodePolicy Execute Method | Glimpse API Documentation |
Executes the specified policy with the given context.
Namespace: Glimpse.Core.PolicyAssembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public RuntimePolicy Execute( IRuntimePolicyContext policyContext )
public RuntimePolicy Execute( IRuntimePolicyContext policyContext )
Parameters
- policyContext
- Type: Glimpse.Core.Extensibility IRuntimePolicyContext
The policy context.
Return Value
On if the response status code is contained on the white list, otherwise Off.Implements
IRuntimePolicy Execute(IRuntimePolicyContext)Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | Exception thrown if policyContext is null. |
See Also