C# Class ERP.Web.AuthenticationContext

The domain context corresponding to the 'AuthenticationService' domain service.
Inheritance: global::System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationDomainContextBase
Show file Open project: arthurgfonseca/ERP-Grupo5

Public Methods

Method Description
AuthenticationContext ( ) : System

Initializes a new instance of the AuthenticationContext class.

AuthenticationContext ( DomainClient domainClient ) : System

Initializes a new instance of the AuthenticationContext class with the specified domainClient.

AuthenticationContext ( Uri serviceUri ) : System

Initializes a new instance of the AuthenticationContext class with the specified service URI.

GetUserQuery ( ) : EntityQuery

Gets an EntityQuery instance that can be used to load User entities using the 'GetUser' query.

LoginQuery ( string userName, string password, bool isPersistent, string customData ) : EntityQuery

Gets an EntityQuery instance that can be used to load User entities using the 'Login' query.

LogoutQuery ( ) : EntityQuery

Gets an EntityQuery instance that can be used to load User entities using the 'Logout' query.

Protected Methods

Method Description
CreateEntityContainer ( ) : EntityContainer

Creates a new entity container for this domain context's entity sets.

Private Methods

Method Description
OnCreated ( ) : void

This method is invoked from the constructor once initialization is complete and can be used for further object setup.

Method Details

AuthenticationContext() public method

Initializes a new instance of the AuthenticationContext class.
public AuthenticationContext ( ) : System
return System

AuthenticationContext() public method

Initializes a new instance of the AuthenticationContext class with the specified domainClient.
public AuthenticationContext ( DomainClient domainClient ) : System
domainClient DomainClient The DomainClient instance to use for this domain context.
return System

AuthenticationContext() public method

Initializes a new instance of the AuthenticationContext class with the specified service URI.
public AuthenticationContext ( Uri serviceUri ) : System
serviceUri System.Uri The AuthenticationService service URI.
return System

CreateEntityContainer() protected method

Creates a new entity container for this domain context's entity sets.
protected CreateEntityContainer ( ) : EntityContainer
return EntityContainer

GetUserQuery() public method

Gets an EntityQuery instance that can be used to load User entities using the 'GetUser' query.
public GetUserQuery ( ) : EntityQuery
return EntityQuery

LoginQuery() public method

Gets an EntityQuery instance that can be used to load User entities using the 'Login' query.
public LoginQuery ( string userName, string password, bool isPersistent, string customData ) : EntityQuery
userName string The value for the 'userName' parameter of the query.
password string The value for the 'password' parameter of the query.
isPersistent bool The value for the 'isPersistent' parameter of the query.
customData string The value for the 'customData' parameter of the query.
return EntityQuery

LogoutQuery() public method

Gets an EntityQuery instance that can be used to load User entities using the 'Logout' query.
public LogoutQuery ( ) : EntityQuery
return EntityQuery