Configure Method

Glimpse API

ContentTypePolicy 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 content type white list with values from web.config. A list of ratified Http status codes is available in OnlineSection 10 of RFC 2616, the Http version 1.1 specification.
Examples

Configure the content type white list in web.config with the following entries:
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies>
        <contentTypes>
            <!-- <clear /> clear to reset defaults -->
            <add contentType="{media\type}" />
        </contentTypes>
    </runtimePolicies>
</glimpse>
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies>
        <contentTypes>
            <!-- <clear /> clear to reset defaults -->
            <add contentType="{media\type}" />
        </contentTypes>
    </runtimePolicies>
</glimpse>
See Also