public UserInfo GetUserByUserName( string userName ) { GetUserByUserNameRequest request = new GetUserByUserNameRequest() { UserName = userName }; GetUserResponse response = CallWebService< IUserManagementServicev1_0, GetUserByUserNameRequest, GetUserResponse>( m_service1_0, request, ( s, q ) => s.GetUserByUserName( q ) ); return response.User; }
/// <remarks/> public void GetUserByUserNameAsync(GetUserByUserNameRequest GetUserByUserNameRequest) { this.GetUserByUserNameAsync(GetUserByUserNameRequest, null); }
/// <remarks/> public void GetUserByUserNameAsync(GetUserByUserNameRequest GetUserByUserNameRequest, object userState) { if ((this.GetUserByUserNameOperationCompleted == null)) { this.GetUserByUserNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserByUserNameOperationCompleted); } this.InvokeAsync("GetUserByUserName", new object[] { GetUserByUserNameRequest}, this.GetUserByUserNameOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginGetUserByUserName(GetUserByUserNameRequest GetUserByUserNameRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetUserByUserName", new object[] { GetUserByUserNameRequest}, callback, asyncState); }