//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // namespace ICSharpCode.PInvokeAddIn.WebServices { using System; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="PInvokeServiceSoap", Namespace="http://www.pinvoke.net/webservices/")] public partial class PInvokeService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback GetResultsForFunctionOperationCompleted; private System.Threading.SendOrPostCallback ContributeSignaturesAndTypesOperationCompleted; /// public PInvokeService() { this.Url = "http://www.pinvoke.net/pinvokeservice.asmx"; } /// public event GetResultsForFunctionCompletedEventHandler GetResultsForFunctionCompleted; /// public event ContributeSignaturesAndTypesCompletedEventHandler ContributeSignaturesAndTypesCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.pinvoke.net/webservices/GetResultsForFunction", RequestNamespace="http://www.pinvoke.net/webservices/", ResponseNamespace="http://www.pinvoke.net/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] public SignatureInfo[] GetResultsForFunction(string functionName, string moduleName) { object[] results = this.Invoke("GetResultsForFunction", new object[] { functionName, moduleName}); return ((SignatureInfo[])(results[0])); } /// public System.IAsyncResult BeginGetResultsForFunction(string functionName, string moduleName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetResultsForFunction", new object[] { functionName, moduleName}, callback, asyncState); } /// public SignatureInfo[] EndGetResultsForFunction(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SignatureInfo[])(results[0])); } /// public void GetResultsForFunctionAsync(string functionName, string moduleName) { this.GetResultsForFunctionAsync(functionName, moduleName, null); } /// public void GetResultsForFunctionAsync(string functionName, string moduleName, object userState) { if ((this.GetResultsForFunctionOperationCompleted == null)) { this.GetResultsForFunctionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetResultsForFunctionOperationCompleted); } this.InvokeAsync("GetResultsForFunction", new object[] { functionName, moduleName}, this.GetResultsForFunctionOperationCompleted, userState); } private void OnGetResultsForFunctionOperationCompleted(object arg) { if ((this.GetResultsForFunctionCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetResultsForFunctionCompleted(this, new GetResultsForFunctionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.pinvoke.net/webservices/ContributeSignaturesAndTypes", RequestNamespace="http://www.pinvoke.net/webservices/", ResponseNamespace="http://www.pinvoke.net/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string ContributeSignaturesAndTypes(string code, string language, string userName) { object[] results = this.Invoke("ContributeSignaturesAndTypes", new object[] { code, language, userName}); return ((string)(results[0])); } /// public System.IAsyncResult BeginContributeSignaturesAndTypes(string code, string language, string userName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ContributeSignaturesAndTypes", new object[] { code, language, userName}, callback, asyncState); } /// public string EndContributeSignaturesAndTypes(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// public void ContributeSignaturesAndTypesAsync(string code, string language, string userName) { this.ContributeSignaturesAndTypesAsync(code, language, userName, null); } /// public void ContributeSignaturesAndTypesAsync(string code, string language, string userName, object userState) { if ((this.ContributeSignaturesAndTypesOperationCompleted == null)) { this.ContributeSignaturesAndTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnContributeSignaturesAndTypesOperationCompleted); } this.InvokeAsync("ContributeSignaturesAndTypes", new object[] { code, language, userName}, this.ContributeSignaturesAndTypesOperationCompleted, userState); } private void OnContributeSignaturesAndTypesOperationCompleted(object arg) { if ((this.ContributeSignaturesAndTypesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ContributeSignaturesAndTypesCompleted(this, new ContributeSignaturesAndTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.pinvoke.net/webservices/")] public partial class SignatureInfo { private string signatureField; private string languageField; private string lastAuthorField; private System.DateTime lastModifiedField; private string moduleField; private string urlField; private string alternativeManagedAPIField; private string summaryField; private string signatureCommentsField; /// public string Signature { get { return this.signatureField; } set { this.signatureField = value; } } /// public string Language { get { return this.languageField; } set { this.languageField = value; } } /// public string LastAuthor { get { return this.lastAuthorField; } set { this.lastAuthorField = value; } } /// public System.DateTime LastModified { get { return this.lastModifiedField; } set { this.lastModifiedField = value; } } /// public string Module { get { return this.moduleField; } set { this.moduleField = value; } } /// public string Url { get { return this.urlField; } set { this.urlField = value; } } /// public string AlternativeManagedAPI { get { return this.alternativeManagedAPIField; } set { this.alternativeManagedAPIField = value; } } /// public string Summary { get { return this.summaryField; } set { this.summaryField = value; } } /// public string SignatureComments { get { return this.signatureCommentsField; } set { this.signatureCommentsField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetResultsForFunctionCompletedEventHandler(object sender, GetResultsForFunctionCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetResultsForFunctionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetResultsForFunctionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public SignatureInfo[] Result { get { this.RaiseExceptionIfNecessary(); return ((SignatureInfo[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void ContributeSignaturesAndTypesCompletedEventHandler(object sender, ContributeSignaturesAndTypesCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class ContributeSignaturesAndTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal ContributeSignaturesAndTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } }