C# Class SharpRaven.Data.SentryUserFactory

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

Public Methods

Method Description
Create ( ) : SentryUser

Gets the user.

Protected Methods

Method Description
OnCreate ( SentryUser user ) : SentryUser

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

Private Methods

Method Description
GetIpAddress ( ) : dynamic
GetPrincipal ( ) : IPrincipal

Method Details

Create() public method

Gets the user.
public Create ( ) : SentryUser
return SentryUser

OnCreate() protected method

Called when the SentryUser has been created. Can be overridden to adjust the values of the user before it is sent to Sentry.
protected OnCreate ( SentryUser user ) : SentryUser
user SentryUser The user information.
return SentryUser