RuntimePolicies Property

Glimpse API

Section RuntimePolicies Property Glimpse API Documentation
Gets or sets the collection of IRuntimePolicys that Glimpse will use to determine how it can manipulate any given Http response.

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

Syntax

public PolicyDiscoverableCollectionElement RuntimePolicies { get; set; }
public PolicyDiscoverableCollectionElement RuntimePolicies { get; set; }
Remarks

By default, runtime policies are discovered at runtime but that behavior, plus the location of where they are found, and which ones should be ignored is configurable.
Examples

<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies autoDiscover="true" discoveryLocation="bin\debug">
        <ignoredTypes>
            <add type="{Namespace.Type, AssemblyName}"/>
        </ignoredTypes>
    </runtimePolicies>
    <!-- Additional Glimpse configuration nodes -->
</glimpse>
<glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd">
    <runtimePolicies autoDiscover="true" discoveryLocation="bin\debug">
        <ignoredTypes>
            <add type="{Namespace.Type, AssemblyName}"/>
        </ignoredTypes>
    </runtimePolicies>
    <!-- Additional Glimpse configuration nodes -->
</glimpse>
See Also