C# Class SharpRaven.Data.SentryRequestFactory

A default implementation of ISentryRequestFactory. Override the OnCreate method to adjust the values of the SentryRequest before it is sent to Sentry.
Inheritance: ISentryRequestFactory
ファイルを表示 Open project: getsentry/raven-csharp

Private Properties

Property Type Description
Convert string>.IDictionary
GetHttpContext void
TryGetHttpContextPropertyFromAppDomain void

Public Methods

Method Description
Create ( ) : ISentryRequest

Creates a new instance of SentryRequest for the current packet.

OnCreate ( SentryRequest request ) : SentryRequest

Called when the SentryRequest has been created. Can be overridden to adjust the values of the request before it is sent to Sentry.

Private Methods

Method Description
Convert ( NameObjectCollectionBase>.Func collectionGetter ) : string>.IDictionary
GetHttpContext ( ) : void
TryGetHttpContextPropertyFromAppDomain ( ) : void

Method Details

Create() public method

Creates a new instance of SentryRequest for the current packet.
public Create ( ) : ISentryRequest
return ISentryRequest

OnCreate() public method

Called when the SentryRequest has been created. Can be overridden to adjust the values of the request before it is sent to Sentry.
public OnCreate ( SentryRequest request ) : SentryRequest
request SentryRequest The HTTP request information.
return SentryRequest