// ------------------------------------------------------------------------------
// <auto-generated>
// 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000
// 
// 對這個檔案所做的變更可能會造成錯誤的行為，而且如果重新產生程式碼，
// 變更將會遺失。
// </auto-generated>
// ------------------------------------------------------------------------------


using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using Microsoft.VisualBasic.CompilerServices;

// 
// 原始程式碼已由 Microsoft.VSDesigner 自動產生，版本 4.0.30319.42000。
// 
namespace AutoRunLib_C.wsInvoke
{

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [WebServiceBinding(Name = "wsInvokeSoap", Namespace = "http://www.imestech.com/wsInvoke")]
    [XmlInclude(typeof(object[]))]
    public partial class wsInvoke : SoapHttpClientProtocol
    {

        private System.Threading.SendOrPostCallback invokeSrvOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_EnableLogOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_XmlOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_Xml_SessionOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataTableParameterOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataTableOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataSetOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_SessionOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_Session_jsonOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_jsonOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_Session_plainjsonOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_plainjsonOperationCompleted;

        private System.Threading.SendOrPostCallback TestOperationCompleted;

        private System.Threading.SendOrPostCallback invoke_SignalROperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_ModuleOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_Module_DataSetOperationCompleted;

        private System.Threading.SendOrPostCallback Invoke_GuardServer_ProcessOperationCompleted;

        private bool useDefaultCredentialsSetExplicitly;

        /// <remarks/>
        public wsInvoke() : base()
        {
            Url = My.MySettings.Default.AutoRunLib_wsInvoke_wsInvoke;
            if (IsLocalFileSystemWebService(Url) == true)
            {
                UseDefaultCredentials = true;
                useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        public new string Url
        {
            get
            {
                return base.Url;
            }
            set
            {
                if (IsLocalFileSystemWebService(base.Url) == true && useDefaultCredentialsSetExplicitly == false && IsLocalFileSystemWebService(value) == false)

                {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }

        public new bool UseDefaultCredentials
        {
            get
            {
                return base.UseDefaultCredentials;
            }
            set
            {
                base.UseDefaultCredentials = value;
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        /// <remarks/>
        public event invokeSrvCompletedEventHandler invokeSrvCompleted;

        /// <remarks/>
        public event invokeSrv_EnableLogCompletedEventHandler invokeSrv_EnableLogCompleted;

        /// <remarks/>
        public event invokeSrv_XmlCompletedEventHandler invokeSrv_XmlCompleted;

        /// <remarks/>
        public event invokeSrv_Xml_SessionCompletedEventHandler invokeSrv_Xml_SessionCompleted;

        /// <remarks/>
        public event invokeSrv_DataTableParameterCompletedEventHandler invokeSrv_DataTableParameterCompleted;

        /// <remarks/>
        public event invokeSrv_DataTableCompletedEventHandler invokeSrv_DataTableCompleted;

        /// <remarks/>
        public event invokeSrv_DataSetCompletedEventHandler invokeSrv_DataSetCompleted;

        /// <remarks/>
        public event invokeSrv_SessionCompletedEventHandler invokeSrv_SessionCompleted;

        /// <remarks/>
        public event invokeSrv_Session_jsonCompletedEventHandler invokeSrv_Session_jsonCompleted;

        /// <remarks/>
        public event invokeSrv_jsonCompletedEventHandler invokeSrv_jsonCompleted;

        /// <remarks/>
        public event invokeSrv_Session_plainjsonCompletedEventHandler invokeSrv_Session_plainjsonCompleted;

        /// <remarks/>
        public event invokeSrv_plainjsonCompletedEventHandler invokeSrv_plainjsonCompleted;

        /// <remarks/>
        public event TestCompletedEventHandler TestCompleted;

        /// <remarks/>
        public event invoke_SignalRCompletedEventHandler invoke_SignalRCompleted;

        /// <remarks/>
        public event invokeSrv_ModuleCompletedEventHandler invokeSrv_ModuleCompleted;

        /// <remarks/>
        public event invokeSrv_Module_DataSetCompletedEventHandler invokeSrv_Module_DataSetCompleted;

        /// <remarks/>
        public event Invoke_GuardServer_ProcessCompletedEventHandler Invoke_GuardServer_ProcessCompleted;

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv(string method, object[] parameters)
        {
            object[] results = Invoke("invokeSrv", new object[] { method, parameters });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv(string method, object[] parameters, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv", new object[] { method, parameters }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrvAsync(string method, object[] parameters)
        {
            invokeSrvAsync(method, parameters, null);
        }

        /// <remarks/>
        public void invokeSrvAsync(string method, object[] parameters, object userState)
        {
            if (invokeSrvOperationCompleted == null)
            {
                invokeSrvOperationCompleted = OninvokeSrvOperationCompleted;
            }
            InvokeAsync("invokeSrv", new object[] { method, parameters }, invokeSrvOperationCompleted, userState);
        }

        private void OninvokeSrvOperationCompleted(object arg)
        {
            if (invokeSrvCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrvCompleted?.Invoke(this, new invokeSrvCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_EnableLog", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_EnableLog(string method, object[] parameters, bool LogOn)
        {
            object[] results = Invoke("invokeSrv_EnableLog", new object[] { method, parameters, LogOn });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_EnableLog(string method, object[] parameters, bool LogOn, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_EnableLog", new object[] { method, parameters, LogOn }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_EnableLog(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_EnableLogAsync(string method, object[] parameters, bool LogOn)
        {
            invokeSrv_EnableLogAsync(method, parameters, LogOn, null);
        }

        /// <remarks/>
        public void invokeSrv_EnableLogAsync(string method, object[] parameters, bool LogOn, object userState)
        {
            if (invokeSrv_EnableLogOperationCompleted == null)
            {
                invokeSrv_EnableLogOperationCompleted = OninvokeSrv_EnableLogOperationCompleted;
            }
            InvokeAsync("invokeSrv_EnableLog", new object[] { method, parameters, LogOn }, invokeSrv_EnableLogOperationCompleted, userState);
        }

        private void OninvokeSrv_EnableLogOperationCompleted(object arg)
        {
            if (invokeSrv_EnableLogCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_EnableLogCompleted?.Invoke(this, new invokeSrv_EnableLogCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Xml", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Xml(string method, string inXMl)
        {
            object[] results = Invoke("invokeSrv_Xml", new object[] { method, inXMl });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Xml(string method, string inXMl, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Xml", new object[] { method, inXMl }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Xml(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_XmlAsync(string method, string inXMl)
        {
            invokeSrv_XmlAsync(method, inXMl, null);
        }

        /// <remarks/>
        public void invokeSrv_XmlAsync(string method, string inXMl, object userState)
        {
            if (invokeSrv_XmlOperationCompleted == null)
            {
                invokeSrv_XmlOperationCompleted = OninvokeSrv_XmlOperationCompleted;
            }
            InvokeAsync("invokeSrv_Xml", new object[] { method, inXMl }, invokeSrv_XmlOperationCompleted, userState);
        }

        private void OninvokeSrv_XmlOperationCompleted(object arg)
        {
            if (invokeSrv_XmlCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_XmlCompleted?.Invoke(this, new invokeSrv_XmlCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Xml_Session", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Xml_Session(string method, string inXMl)
        {
            object[] results = Invoke("invokeSrv_Xml_Session", new object[] { method, inXMl });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Xml_Session(string method, string inXMl, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Xml_Session", new object[] { method, inXMl }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Xml_Session(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_Xml_SessionAsync(string method, string inXMl)
        {
            invokeSrv_Xml_SessionAsync(method, inXMl, null);
        }

        /// <remarks/>
        public void invokeSrv_Xml_SessionAsync(string method, string inXMl, object userState)
        {
            if (invokeSrv_Xml_SessionOperationCompleted == null)
            {
                invokeSrv_Xml_SessionOperationCompleted = OninvokeSrv_Xml_SessionOperationCompleted;
            }
            InvokeAsync("invokeSrv_Xml_Session", new object[] { method, inXMl }, invokeSrv_Xml_SessionOperationCompleted, userState);
        }

        private void OninvokeSrv_Xml_SessionOperationCompleted(object arg)
        {
            if (invokeSrv_Xml_SessionCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_Xml_SessionCompleted?.Invoke(this, new invokeSrv_Xml_SessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataTableParameter", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataTableParameter(string method, object[] parameters, ref DataTable pDataTable)
        {
            object[] results = Invoke("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable });
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataTableParameter(string method, object[] parameters, DataTable pDataTable, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataTableParameter(IAsyncResult asyncResult, ref DataTable pDataTable)
        {
            object[] results = EndInvoke(asyncResult);
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataTableParameterAsync(string method, object[] parameters, DataTable pDataTable)
        {
            invokeSrv_DataTableParameterAsync(method, parameters, pDataTable, null);
        }

        /// <remarks/>
        public void invokeSrv_DataTableParameterAsync(string method, object[] parameters, DataTable pDataTable, object userState)
        {
            if (invokeSrv_DataTableParameterOperationCompleted == null)
            {
                invokeSrv_DataTableParameterOperationCompleted = OninvokeSrv_DataTableParameterOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable }, invokeSrv_DataTableParameterOperationCompleted, userState);
        }

        private void OninvokeSrv_DataTableParameterOperationCompleted(object arg)
        {
            if (invokeSrv_DataTableParameterCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataTableParameterCompleted?.Invoke(this, new invokeSrv_DataTableParameterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataTable", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataTable(string method, string InXml, ref DataTable pDataTable)
        {
            object[] results = Invoke("invokeSrv_DataTable", new object[] { method, InXml, pDataTable });
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataTable(string method, string InXml, DataTable pDataTable, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataTable", new object[] { method, InXml, pDataTable }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataTable(IAsyncResult asyncResult, ref DataTable pDataTable)
        {
            object[] results = EndInvoke(asyncResult);
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataTableAsync(string method, string InXml, DataTable pDataTable)
        {
            invokeSrv_DataTableAsync(method, InXml, pDataTable, null);
        }

        /// <remarks/>
        public void invokeSrv_DataTableAsync(string method, string InXml, DataTable pDataTable, object userState)
        {
            if (invokeSrv_DataTableOperationCompleted == null)
            {
                invokeSrv_DataTableOperationCompleted = OninvokeSrv_DataTableOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataTable", new object[] { method, InXml, pDataTable }, invokeSrv_DataTableOperationCompleted, userState);
        }

        private void OninvokeSrv_DataTableOperationCompleted(object arg)
        {
            if (invokeSrv_DataTableCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataTableCompleted?.Invoke(this, new invokeSrv_DataTableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataSet", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataSet(string method, string InXml, ref DataSet pDataSet)
        {
            object[] results = Invoke("invokeSrv_DataSet", new object[] { method, InXml, pDataSet });
            pDataSet = (DataSet)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataSet(string method, string InXml, DataSet pDataSet, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataSet", new object[] { method, InXml, pDataSet }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataSet(IAsyncResult asyncResult, ref DataSet pDataSet)
        {
            object[] results = EndInvoke(asyncResult);
            pDataSet = (DataSet)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataSetAsync(string method, string InXml, DataSet pDataSet)
        {
            invokeSrv_DataSetAsync(method, InXml, pDataSet, null);
        }

        /// <remarks/>
        public void invokeSrv_DataSetAsync(string method, string InXml, DataSet pDataSet, object userState)
        {
            if (invokeSrv_DataSetOperationCompleted == null)
            {
                invokeSrv_DataSetOperationCompleted = OninvokeSrv_DataSetOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataSet", new object[] { method, InXml, pDataSet }, invokeSrv_DataSetOperationCompleted, userState);
        }

        private void OninvokeSrv_DataSetOperationCompleted(object arg)
        {
            if (invokeSrv_DataSetCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataSetCompleted?.Invoke(this, new invokeSrv_DataSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Session", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Session(string method, object[] parameters)
        {
            object[] results = Invoke("invokeSrv_Session", new object[] { method, parameters });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Session(string method, object[] parameters, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Session", new object[] { method, parameters }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Session(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_SessionAsync(string method, object[] parameters)
        {
            invokeSrv_SessionAsync(method, parameters, null);
        }

        /// <remarks/>
        public void invokeSrv_SessionAsync(string method, object[] parameters, object userState)
        {
            if (invokeSrv_SessionOperationCompleted == null)
            {
                invokeSrv_SessionOperationCompleted = OninvokeSrv_SessionOperationCompleted;
            }
            InvokeAsync("invokeSrv_Session", new object[] { method, parameters }, invokeSrv_SessionOperationCompleted, userState);
        }

        private void OninvokeSrv_SessionOperationCompleted(object arg)
        {
            if (invokeSrv_SessionCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_SessionCompleted?.Invoke(this, new invokeSrv_SessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Session_json", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string invokeSrv_Session_json(string metadata, string parameter)
        {
            object[] results = Invoke("invokeSrv_Session_json", new object[] { metadata, parameter });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Session_json(string metadata, string parameter, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Session_json", new object[] { metadata, parameter }, callback, asyncState);
        }

        /// <remarks/>
        public string EndinvokeSrv_Session_json(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void invokeSrv_Session_jsonAsync(string metadata, string parameter)
        {
            invokeSrv_Session_jsonAsync(metadata, parameter, null);
        }

        /// <remarks/>
        public void invokeSrv_Session_jsonAsync(string metadata, string parameter, object userState)
        {
            if (invokeSrv_Session_jsonOperationCompleted == null)
            {
                invokeSrv_Session_jsonOperationCompleted = OninvokeSrv_Session_jsonOperationCompleted;
            }
            InvokeAsync("invokeSrv_Session_json", new object[] { metadata, parameter }, invokeSrv_Session_jsonOperationCompleted, userState);
        }

        private void OninvokeSrv_Session_jsonOperationCompleted(object arg)
        {
            if (invokeSrv_Session_jsonCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_Session_jsonCompleted?.Invoke(this, new invokeSrv_Session_jsonCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_json", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string invokeSrv_json(string uri, string content)
        {
            object[] results = Invoke("invokeSrv_json", new object[] { uri, content });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_json(string uri, string content, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_json", new object[] { uri, content }, callback, asyncState);
        }

        /// <remarks/>
        public string EndinvokeSrv_json(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void invokeSrv_jsonAsync(string uri, string content)
        {
            invokeSrv_jsonAsync(uri, content, null);
        }

        /// <remarks/>
        public void invokeSrv_jsonAsync(string uri, string content, object userState)
        {
            if (invokeSrv_jsonOperationCompleted == null)
            {
                invokeSrv_jsonOperationCompleted = OninvokeSrv_jsonOperationCompleted;
            }
            InvokeAsync("invokeSrv_json", new object[] { uri, content }, invokeSrv_jsonOperationCompleted, userState);
        }

        private void OninvokeSrv_jsonOperationCompleted(object arg)
        {
            if (invokeSrv_jsonCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_jsonCompleted?.Invoke(this, new invokeSrv_jsonCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Session_plainjson", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string invokeSrv_Session_plainjson(string uri, string content)
        {
            object[] results = Invoke("invokeSrv_Session_plainjson", new object[] { uri, content });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Session_plainjson(string uri, string content, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Session_plainjson", new object[] { uri, content }, callback, asyncState);
        }

        /// <remarks/>
        public string EndinvokeSrv_Session_plainjson(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void invokeSrv_Session_plainjsonAsync(string uri, string content)
        {
            invokeSrv_Session_plainjsonAsync(uri, content, null);
        }

        /// <remarks/>
        public void invokeSrv_Session_plainjsonAsync(string uri, string content, object userState)
        {
            if (invokeSrv_Session_plainjsonOperationCompleted == null)
            {
                invokeSrv_Session_plainjsonOperationCompleted = OninvokeSrv_Session_plainjsonOperationCompleted;
            }
            InvokeAsync("invokeSrv_Session_plainjson", new object[] { uri, content }, invokeSrv_Session_plainjsonOperationCompleted, userState);
        }

        private void OninvokeSrv_Session_plainjsonOperationCompleted(object arg)
        {
            if (invokeSrv_Session_plainjsonCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_Session_plainjsonCompleted?.Invoke(this, new invokeSrv_Session_plainjsonCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_plainjson", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string invokeSrv_plainjson(string uri, string content)
        {
            object[] results = Invoke("invokeSrv_plainjson", new object[] { uri, content });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_plainjson(string uri, string content, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_plainjson", new object[] { uri, content }, callback, asyncState);
        }

        /// <remarks/>
        public string EndinvokeSrv_plainjson(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void invokeSrv_plainjsonAsync(string uri, string content)
        {
            invokeSrv_plainjsonAsync(uri, content, null);
        }

        /// <remarks/>
        public void invokeSrv_plainjsonAsync(string uri, string content, object userState)
        {
            if (invokeSrv_plainjsonOperationCompleted == null)
            {
                invokeSrv_plainjsonOperationCompleted = OninvokeSrv_plainjsonOperationCompleted;
            }
            InvokeAsync("invokeSrv_plainjson", new object[] { uri, content }, invokeSrv_plainjsonOperationCompleted, userState);
        }

        private void OninvokeSrv_plainjsonOperationCompleted(object arg)
        {
            if (invokeSrv_plainjsonCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_plainjsonCompleted?.Invoke(this, new invokeSrv_plainjsonCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/Test", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string Test(string UserNo)
        {
            object[] results = Invoke("Test", new object[] { UserNo });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginTest(string UserNo, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("Test", new object[] { UserNo }, callback, asyncState);
        }

        /// <remarks/>
        public string EndTest(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void TestAsync(string UserNo)
        {
            TestAsync(UserNo, null);
        }

        /// <remarks/>
        public void TestAsync(string UserNo, object userState)
        {
            if (TestOperationCompleted == null)
            {
                TestOperationCompleted = OnTestOperationCompleted;
            }
            InvokeAsync("Test", new object[] { UserNo }, TestOperationCompleted, userState);
        }

        private void OnTestOperationCompleted(object arg)
        {
            if (TestCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                TestCompleted?.Invoke(this, new TestCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invoke_SignalR", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invoke_SignalR(string mseContent)
        {
            object[] results = Invoke("invoke_SignalR", new object[] { mseContent });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult Begininvoke_SignalR(string mseContent, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invoke_SignalR", new object[] { mseContent }, callback, asyncState);
        }

        /// <remarks/>
        public object Endinvoke_SignalR(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invoke_SignalRAsync(string mseContent)
        {
            invoke_SignalRAsync(mseContent, null);
        }

        /// <remarks/>
        public void invoke_SignalRAsync(string mseContent, object userState)
        {
            if (invoke_SignalROperationCompleted == null)
            {
                invoke_SignalROperationCompleted = Oninvoke_SignalROperationCompleted;
            }
            InvokeAsync("invoke_SignalR", new object[] { mseContent }, invoke_SignalROperationCompleted, userState);
        }

        private void Oninvoke_SignalROperationCompleted(object arg)
        {
            if (invoke_SignalRCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invoke_SignalRCompleted?.Invoke(this, new invoke_SignalRCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Module", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Module(string method, ref object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn)
        {
            object[] results = Invoke("invokeSrv_Module", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn });
            parameters = (object[])results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Module(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Module", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Module(IAsyncResult asyncResult, ref object[] parameters)
        {
            object[] results = EndInvoke(asyncResult);
            parameters = (object[])results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_ModuleAsync(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn)
        {
            invokeSrv_ModuleAsync(method, parameters, pInvokeType, pLogKeyFields, blnLogOn, null);
        }

        /// <remarks/>
        public void invokeSrv_ModuleAsync(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, object userState)
        {
            if (invokeSrv_ModuleOperationCompleted == null)
            {
                invokeSrv_ModuleOperationCompleted = OninvokeSrv_ModuleOperationCompleted;
            }
            InvokeAsync("invokeSrv_Module", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn }, invokeSrv_ModuleOperationCompleted, userState);
        }

        private void OninvokeSrv_ModuleOperationCompleted(object arg)
        {
            if (invokeSrv_ModuleCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_ModuleCompleted?.Invoke(this, new invokeSrv_ModuleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Module_DataSet", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Module_DataSet(string method, ref object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, ref DataSet pDataSet)
        {
            object[] results = Invoke("invokeSrv_Module_DataSet", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn, pDataSet });
            parameters = (object[])results[1];
            pDataSet = (DataSet)results[2];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Module_DataSet(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, DataSet pDataSet, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Module_DataSet", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn, pDataSet }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Module_DataSet(IAsyncResult asyncResult, ref object[] parameters, ref DataSet pDataSet)
        {
            object[] results = EndInvoke(asyncResult);
            parameters = (object[])results[1];
            pDataSet = (DataSet)results[2];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_Module_DataSetAsync(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, DataSet pDataSet)
        {
            invokeSrv_Module_DataSetAsync(method, parameters, pInvokeType, pLogKeyFields, blnLogOn, pDataSet, null);
        }

        /// <remarks/>
        public void invokeSrv_Module_DataSetAsync(string method, object[] parameters, object pInvokeType, string[] pLogKeyFields, bool blnLogOn, DataSet pDataSet, object userState)
        {
            if (invokeSrv_Module_DataSetOperationCompleted == null)
            {
                invokeSrv_Module_DataSetOperationCompleted = OninvokeSrv_Module_DataSetOperationCompleted;
            }
            InvokeAsync("invokeSrv_Module_DataSet", new object[] { method, parameters, pInvokeType, pLogKeyFields, blnLogOn, pDataSet }, invokeSrv_Module_DataSetOperationCompleted, userState);
        }

        private void OninvokeSrv_Module_DataSetOperationCompleted(object arg)
        {
            if (invokeSrv_Module_DataSetCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_Module_DataSetCompleted?.Invoke(this, new invokeSrv_Module_DataSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/Invoke_GuardServer_Process", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object Invoke_GuardServer_Process()
        {
            object[] results = Invoke("Invoke_GuardServer_Process", new object[0]);
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BeginInvoke_GuardServer_Process(AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("Invoke_GuardServer_Process", new object[0], callback, asyncState);
        }

        /// <remarks/>
        public object EndInvoke_GuardServer_Process(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void Invoke_GuardServer_ProcessAsync()
        {
            Invoke_GuardServer_ProcessAsync(null);
        }

        /// <remarks/>
        public void Invoke_GuardServer_ProcessAsync(object userState)
        {
            if (Invoke_GuardServer_ProcessOperationCompleted == null)
            {
                Invoke_GuardServer_ProcessOperationCompleted = OnInvoke_GuardServer_ProcessOperationCompleted;
            }
            InvokeAsync("Invoke_GuardServer_Process", new object[0], Invoke_GuardServer_ProcessOperationCompleted, userState);
        }

        private void OnInvoke_GuardServer_ProcessOperationCompleted(object arg)
        {
            if (Invoke_GuardServer_ProcessCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                Invoke_GuardServer_ProcessCompleted?.Invoke(this, new Invoke_GuardServer_ProcessCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        public new void CancelAsync(object userState)
        {
            base.CancelAsync(userState);
        }

        private bool IsLocalFileSystemWebService(string url)
        {
            if (url == null || ReferenceEquals(url, string.Empty))
            {
                return false;
            }
            var wsUri = new Uri(url);
            if (wsUri.Port >= 1024 && string.Compare(wsUri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return true;
            }
            return false;
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrvCompletedEventHandler(object sender, invokeSrvCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrvCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrvCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_EnableLogCompletedEventHandler(object sender, invokeSrv_EnableLogCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_EnableLogCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_EnableLogCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_XmlCompletedEventHandler(object sender, invokeSrv_XmlCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_XmlCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_XmlCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_Xml_SessionCompletedEventHandler(object sender, invokeSrv_Xml_SessionCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_Xml_SessionCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_Xml_SessionCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataTableParameterCompletedEventHandler(object sender, invokeSrv_DataTableParameterCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataTableParameterCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataTableParameterCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataTable pDataTable
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataTable)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataTableCompletedEventHandler(object sender, invokeSrv_DataTableCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataTableCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataTableCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataTable pDataTable
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataTable)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataSetCompletedEventHandler(object sender, invokeSrv_DataSetCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataSetCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataSetCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataSet pDataSet
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataSet)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_SessionCompletedEventHandler(object sender, invokeSrv_SessionCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_SessionCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_SessionCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_Session_jsonCompletedEventHandler(object sender, invokeSrv_Session_jsonCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_Session_jsonCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_Session_jsonCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_jsonCompletedEventHandler(object sender, invokeSrv_jsonCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_jsonCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_jsonCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_Session_plainjsonCompletedEventHandler(object sender, invokeSrv_Session_plainjsonCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_Session_plainjsonCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_Session_plainjsonCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_plainjsonCompletedEventHandler(object sender, invokeSrv_plainjsonCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_plainjsonCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_plainjsonCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void TestCompletedEventHandler(object sender, TestCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class TestCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal TestCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invoke_SignalRCompletedEventHandler(object sender, invoke_SignalRCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invoke_SignalRCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invoke_SignalRCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_ModuleCompletedEventHandler(object sender, invokeSrv_ModuleCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_ModuleCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_ModuleCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public object[] parameters
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (object[])results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_Module_DataSetCompletedEventHandler(object sender, invokeSrv_Module_DataSetCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_Module_DataSetCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_Module_DataSetCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public object[] parameters
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (object[])results[1];
            }
        }

        /// <remarks/>
        public DataSet pDataSet
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataSet)results[2];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void Invoke_GuardServer_ProcessCompletedEventHandler(object sender, Invoke_GuardServer_ProcessCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class Invoke_GuardServer_ProcessCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal Invoke_GuardServer_ProcessCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }
}