\r\n

51Degrees Pipeline .NET  4.1Newer Version 4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.Engines.FiftyOne.Data.EvidenceKeyFilterShareUsage Class Reference

Detailed Description

This filter is used by the ShareUsageElement.

It will include anything that is: 1) An HTTP header that is not blocked by the constructor parameter. 2) A cookie that starts with Constants.FIFTYONE_COOKIE_PREFIX or is the asp session cookie (if configured in the constructor). 3) An query string parameters that have been configured to be shared using the constructor parameter. 4) Not a header, cookie or query string parameter.

As this filter is generally inclusive, it will often cause far more evidence to be passed into a pipeline than the engine-specific filters, which tend to be based on a white list such as EvidenceKeyFilterWhitelist.

Inheritance diagram for FiftyOne.Pipeline.Engines.FiftyOne.Data.EvidenceKeyFilterShareUsage:

[legend]

Collaboration diagram for FiftyOne.Pipeline.Engines.FiftyOne.Data.EvidenceKeyFilterShareUsage:

[legend]

Public Member Functions

 EvidenceKeyFilterShareUsage (List< string > blockedHttpHeaders, List< string > includedQueryStringParams, bool includeSession, string aspSessionCookieName)
Constructor More...
virtual bool  Include (string key)
Check if the specified evidence key is included by this filter. More...
int?  Order (string key)
Get the order of precedence of the specified key More...

Constructor & Destructor Documentation

◆ EvidenceKeyFilterShareUsage()

FiftyOne.Pipeline.Engines.FiftyOne.Data.EvidenceKeyFilterShareUsage.EvidenceKeyFilterShareUsage ( List< string >   blockedHttpHeaders,
List< string >   includedQueryStringParams,
bool   includeSession,
string   aspSessionCookieName  
)

Constructor

Parameters
blockedHttpHeaders - A list of the names of the HTTP headers that share usage should not send to 51Degrees.
includedQueryStringParams - A list of the names of query string parameters that share usage should send to 51Degrees.
includeSession - If true then the asp.net session cookie will be included in the filter.
aspSessionCookieName - The name of the cookie that contains the asp.net session id.

Member Function Documentation

◆ Order()

int? FiftyOne.Pipeline.Engines.FiftyOne.Data.EvidenceKeyFilterShareUsage.Order ( string   key )

Get the order of precedence of the specified key

Parameters
key - The key to check
Returns
The order, where lower values indicate a higher order of precedence. Null if the key is not in the white list.

Implements FiftyOne.Pipeline.Core.Data.IEvidenceKeyFilter.