public void ExecuteResponse(IAsyncResult asr) { XmlRpcAsyncResult result = (XmlRpcAsyncResult)asr; SqlProxy clientProtocol = (SqlProxy)result.ClientProtocol; clientProtocol.Url = this.EndpointUri; try { XmlRpcRespStruct_Sql sql = clientProtocol.EndExecute(asr); this.mResponse = new XmlRpcMySqlResponse(sql.mResultset); } catch (Exception exception) { this.mResponse = new XmlRpcMySqlResponse(exception); } if (this.FormsControl != null) { this.FormsControl.Invoke(new mySqlEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response }); } }
public void ExecuteResponse(IAsyncResult asr) { XmlRpcAsyncResult result = (XmlRpcAsyncResult) asr; SqlProxy clientProtocol = (SqlProxy) result.ClientProtocol; clientProtocol.Url = this.EndpointUri; try { XmlRpcRespStruct_Sql sql = clientProtocol.EndExecute(asr); this.mResponse = new XmlRpcMySqlResponse(sql.mResultset); } catch (Exception exception) { this.mResponse = new XmlRpcMySqlResponse(exception); } if (this.FormsControl != null) { this.FormsControl.Invoke(new mySqlEndResponseDelegate(this.CallbackMethod.Invoke), new object[] { this, this.Response }); } }