示例#1
0
 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;
 }
示例#2
0
 /// <remarks/>
 public void CreateUserAsync(CreateUserRequest CreateUserRequest)
 {
     this.CreateUserAsync(CreateUserRequest, null);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateUser(CreateUserRequest CreateUserRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateUser", new object[] {
                 CreateUserRequest}, callback, asyncState);
 }