C# Class SharpRaven.Data.SentryUser

An interface which describes the authenticated User for a request. You should provide at least either an id (a unique identifier for an authenticated user) or ip_address (their IP address).
显示文件 Open project: getsentry/raven-csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetUser ( ISentryUserFactory factory ) : SentryUser

Gets the user.

SentryUser ( IIdentity identity ) : System.Security.Principal

Initializes a new instance of the SentryUser class.

SentryUser ( IPrincipal principal ) : System.Security.Principal

Initializes a new instance of the SentryUser class.

SentryUser ( string username ) : System.Security.Principal

Initializes a new instance of the SentryUser class.

Method Details

GetUser() public static method

Gets the user.
public static GetUser ( ISentryUserFactory factory ) : SentryUser
factory ISentryUserFactory
return SentryUser

SentryUser() public method

Initializes a new instance of the SentryUser class.
public SentryUser ( IIdentity identity ) : System.Security.Principal
identity IIdentity The identity.
return System.Security.Principal

SentryUser() public method

Initializes a new instance of the SentryUser class.
public SentryUser ( IPrincipal principal ) : System.Security.Principal
principal IPrincipal The principal.
return System.Security.Principal

SentryUser() public method

Initializes a new instance of the SentryUser class.
public SentryUser ( string username ) : System.Security.Principal
username string The username.
return System.Security.Principal