public DrupalUser UserCreate(XmlRpcStruct account) { this.InitRequest(); DrupalUser res = default(DrupalUser); try { res = drupalServiceSystem.UserCreate(account); } catch (Exception ex) { this.HandleException(ex, "UserCreate"); } return(res); }
void OnUserRegisterCompleted(IAsyncResult asyncResult) { if (this.UserRegisterCompleted != null) { var clientResult = (XmlRpcAsyncResult)asyncResult; DrupalUser result = default(DrupalUser); try { result = ((IServiceSystem)clientResult.ClientProtocol).EndUserRegister(asyncResult); this.UserRegisterCompleted(this, new DrupalAsyncCompletedEventArgs <DrupalUser>(result, null, asyncResult.AsyncState)); } catch (Exception ex) { this.UserRegisterCompleted(this, new DrupalAsyncCompletedEventArgs <DrupalUser>(result, ex, asyncResult.AsyncState)); } } }