private static CreateUserRequest MapUserInfoToCreateUserRequest( UserInfo user ) { CreateUserRequest request = new CreateUserRequest(); if( user.UserName != null ) { request.UserName = user.UserName.Value; } if( user.FirstName != null ) { request.FirstName = user.FirstName.Value; } if( user.LastName != null ) { request.LastName = user.LastName.Value; } if( user.OrgDefinedId != null ) { request.OrgDefinedId = user.OrgDefinedId.Value; } request.Addresses = user.Addresses; request.FormsOfContact = user.FormsOfContact; request.Demographics = user.Demographics; return request; }
/// <remarks/> public void CreateUserAsync(CreateUserRequest CreateUserRequest) { this.CreateUserAsync(CreateUserRequest, null); }
/// <remarks/> public void CreateUserAsync(CreateUserRequest CreateUserRequest, object userState) { if ((this.CreateUserOperationCompleted == null)) { this.CreateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateUserOperationCompleted); } this.InvokeAsync("CreateUser", new object[] { CreateUserRequest}, this.CreateUserOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginCreateUser(CreateUserRequest CreateUserRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateUser", new object[] { CreateUserRequest}, callback, asyncState); }