C# Class ERP.Web.UserRegistrationContext

The domain context corresponding to the 'UserRegistrationService' domain service.
Inheritance: DomainContext
Exibir arquivo Open project: arthurgfonseca/ERP-Grupo5

Public Methods

Method Description
CreateUser ( RegistrationData user, [ ErrorMessageResourceName ) : InvokeOperation

Asynchronously invokes the 'CreateUser' method of the domain service.

CreateUser ( RegistrationData user, [ ErrorMessageResourceName, Action callback, object userState ) : InvokeOperation

Asynchronously invokes the 'CreateUser' method of the domain service.

CreateUser ( RegistrationData user, string password ) : InvokeOperation

Asynchronously invokes the 'CreateUser' method of the domain service.

CreateUser ( RegistrationData user, string password, Action callback, object userState ) : InvokeOperation

Asynchronously invokes the 'CreateUser' method of the domain service.

GetUsersQuery ( ) : EntityQuery

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

UserRegistrationContext ( ) : System

Initializes a new instance of the UserRegistrationContext class.

UserRegistrationContext ( DomainClient domainClient ) : System

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

UserRegistrationContext ( Uri serviceUri ) : System

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

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

CreateEntityContainer() protected method

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

CreateUser() public method

Asynchronously invokes the 'CreateUser' method of the domain service.
public CreateUser ( RegistrationData user, [ ErrorMessageResourceName ) : InvokeOperation
user RegistrationData The value for the 'user' parameter of this action.
ErrorMessageResourceName [
return InvokeOperation

CreateUser() public method

Asynchronously invokes the 'CreateUser' method of the domain service.
public CreateUser ( RegistrationData user, [ ErrorMessageResourceName, Action callback, object userState ) : InvokeOperation
user RegistrationData The value for the 'user' parameter of this action.
ErrorMessageResourceName [
callback Action Callback to invoke when the operation completes.
userState object Value to pass to the callback. It can be null.
return InvokeOperation

CreateUser() public method

Asynchronously invokes the 'CreateUser' method of the domain service.
public CreateUser ( RegistrationData user, string password ) : InvokeOperation
user RegistrationData The value for the 'user' parameter of this action.
password string The value for the 'password' parameter of this action.
return InvokeOperation

CreateUser() public method

Asynchronously invokes the 'CreateUser' method of the domain service.
public CreateUser ( RegistrationData user, string password, Action callback, object userState ) : InvokeOperation
user RegistrationData The value for the 'user' parameter of this action.
password string The value for the 'password' parameter of this action.
callback Action Callback to invoke when the operation completes.
userState object Value to pass to the callback. It can be null.
return InvokeOperation

GetUsersQuery() public method

Gets an EntityQuery instance that can be used to load RegistrationData entities using the 'GetUsers' query.
public GetUsersQuery ( ) : EntityQuery
return EntityQuery

UserRegistrationContext() public method

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

UserRegistrationContext() public method

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

UserRegistrationContext() public method

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