Configure Method

Glimpse API

StatusCodePolicy Configure Method Glimpse API Documentation
Provides implementations an instance of Section to self populate any end user configuration options.

Namespace: Glimpse.Core.Policy
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

public void Configure(
	Section section
)
public void Configure(
	Section section
)

Parameters

section
Type: Glimpse.Core.Configuration Section
The configuration section, <glimpse> from web.config.

Implements

IConfigurable Configure(Section)
Remarks

Populates the status code white list with values from web.config.
Examples

Configure the status code white list in web.config with the following entries:
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies>
        <statusCodes>
            <!-- <clear /> clear to reset defaults -->
            <add statusCode="{code}" />
        </statusCodes>
    </runtimePolicies>
</glimpse>
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies>
        <statusCodes>
            <!-- <clear /> clear to reset defaults -->
            <add statusCode="{code}" />
        </statusCodes>
    </runtimePolicies>
</glimpse>
See Also