//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.1433.
// 
#pragma warning disable 1591

namespace EQTrack.BlackhawkEventService {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    using System.Data;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="EventServiceSoap", Namespace="http://www.theblackhawk.co.nz/")]
    public partial class EventService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback GetEventsForDeviceOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEventsForDevicesOperationCompleted;
        
        private System.Threading.SendOrPostCallback FindEventsForDeviceByFunctionOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEventsForCustomerOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEventsForDeviceSetFromEventOperationCompleted;
        
        private System.Threading.SendOrPostCallback RedirectOperationCompleted;
        
        private System.Threading.SendOrPostCallback RecordEventOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public EventService() {
            this.Url = global::EQTrack.Properties.Settings.Default.EQTrack_BlackhawkEventService_EventService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event GetEventsForDeviceCompletedEventHandler GetEventsForDeviceCompleted;
        
        /// <remarks/>
        public event GetEventsForDevicesCompletedEventHandler GetEventsForDevicesCompleted;
        
        /// <remarks/>
        public event FindEventsForDeviceByFunctionCompletedEventHandler FindEventsForDeviceByFunctionCompleted;
        
        /// <remarks/>
        public event GetEventsForCustomerCompletedEventHandler GetEventsForCustomerCompleted;
        
        /// <remarks/>
        public event GetEventsForDeviceSetFromEventCompletedEventHandler GetEventsForDeviceSetFromEventCompleted;
        
        /// <remarks/>
        public event RedirectCompletedEventHandler RedirectCompleted;
        
        /// <remarks/>
        public event RecordEventCompletedEventHandler RecordEventCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsForDevice", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetEventsForDevice(string DeviceID, string from, int TopN) {
            object[] results = this.Invoke("GetEventsForDevice", new object[] {
                        DeviceID,
                        from,
                        TopN});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsForDeviceAsync(string DeviceID, string from, int TopN) {
            this.GetEventsForDeviceAsync(DeviceID, from, TopN, null);
        }
        
        /// <remarks/>
        public void GetEventsForDeviceAsync(string DeviceID, string from, int TopN, object userState) {
            if ((this.GetEventsForDeviceOperationCompleted == null)) {
                this.GetEventsForDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsForDeviceOperationCompleted);
            }
            this.InvokeAsync("GetEventsForDevice", new object[] {
                        DeviceID,
                        from,
                        TopN}, this.GetEventsForDeviceOperationCompleted, userState);
        }
        
        private void OnGetEventsForDeviceOperationCompleted(object arg) {
            if ((this.GetEventsForDeviceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsForDeviceCompleted(this, new GetEventsForDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsForDevices", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetEventsForDevices(string Devices, string from, int TopN) {
            object[] results = this.Invoke("GetEventsForDevices", new object[] {
                        Devices,
                        from,
                        TopN});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsForDevicesAsync(string Devices, string from, int TopN) {
            this.GetEventsForDevicesAsync(Devices, from, TopN, null);
        }
        
        /// <remarks/>
        public void GetEventsForDevicesAsync(string Devices, string from, int TopN, object userState) {
            if ((this.GetEventsForDevicesOperationCompleted == null)) {
                this.GetEventsForDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsForDevicesOperationCompleted);
            }
            this.InvokeAsync("GetEventsForDevices", new object[] {
                        Devices,
                        from,
                        TopN}, this.GetEventsForDevicesOperationCompleted, userState);
        }
        
        private void OnGetEventsForDevicesOperationCompleted(object arg) {
            if ((this.GetEventsForDevicesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsForDevicesCompleted(this, new GetEventsForDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/FindEventsForDeviceByFunction", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable FindEventsForDeviceByFunction(string DeviceID, int FUN, string from) {
            object[] results = this.Invoke("FindEventsForDeviceByFunction", new object[] {
                        DeviceID,
                        FUN,
                        from});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void FindEventsForDeviceByFunctionAsync(string DeviceID, int FUN, string from) {
            this.FindEventsForDeviceByFunctionAsync(DeviceID, FUN, from, null);
        }
        
        /// <remarks/>
        public void FindEventsForDeviceByFunctionAsync(string DeviceID, int FUN, string from, object userState) {
            if ((this.FindEventsForDeviceByFunctionOperationCompleted == null)) {
                this.FindEventsForDeviceByFunctionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindEventsForDeviceByFunctionOperationCompleted);
            }
            this.InvokeAsync("FindEventsForDeviceByFunction", new object[] {
                        DeviceID,
                        FUN,
                        from}, this.FindEventsForDeviceByFunctionOperationCompleted, userState);
        }
        
        private void OnFindEventsForDeviceByFunctionOperationCompleted(object arg) {
            if ((this.FindEventsForDeviceByFunctionCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.FindEventsForDeviceByFunctionCompleted(this, new FindEventsForDeviceByFunctionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsForCustomer", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetEventsForCustomer(int CustomerID, string from) {
            object[] results = this.Invoke("GetEventsForCustomer", new object[] {
                        CustomerID,
                        from});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsForCustomerAsync(int CustomerID, string from) {
            this.GetEventsForCustomerAsync(CustomerID, from, null);
        }
        
        /// <remarks/>
        public void GetEventsForCustomerAsync(int CustomerID, string from, object userState) {
            if ((this.GetEventsForCustomerOperationCompleted == null)) {
                this.GetEventsForCustomerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsForCustomerOperationCompleted);
            }
            this.InvokeAsync("GetEventsForCustomer", new object[] {
                        CustomerID,
                        from}, this.GetEventsForCustomerOperationCompleted, userState);
        }
        
        private void OnGetEventsForCustomerOperationCompleted(object arg) {
            if ((this.GetEventsForCustomerCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsForCustomerCompleted(this, new GetEventsForCustomerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/GetEventsForDeviceSetFromEvent", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataTable GetEventsForDeviceSetFromEvent(int CustomerID, int from) {
            object[] results = this.Invoke("GetEventsForDeviceSetFromEvent", new object[] {
                        CustomerID,
                        from});
            return ((System.Data.DataTable)(results[0]));
        }
        
        /// <remarks/>
        public void GetEventsForDeviceSetFromEventAsync(int CustomerID, int from) {
            this.GetEventsForDeviceSetFromEventAsync(CustomerID, from, null);
        }
        
        /// <remarks/>
        public void GetEventsForDeviceSetFromEventAsync(int CustomerID, int from, object userState) {
            if ((this.GetEventsForDeviceSetFromEventOperationCompleted == null)) {
                this.GetEventsForDeviceSetFromEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEventsForDeviceSetFromEventOperationCompleted);
            }
            this.InvokeAsync("GetEventsForDeviceSetFromEvent", new object[] {
                        CustomerID,
                        from}, this.GetEventsForDeviceSetFromEventOperationCompleted, userState);
        }
        
        private void OnGetEventsForDeviceSetFromEventOperationCompleted(object arg) {
            if ((this.GetEventsForDeviceSetFromEventCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEventsForDeviceSetFromEventCompleted(this, new GetEventsForDeviceSetFromEventCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/Redirect", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string Redirect(string IMS, string SEN, string FUN, string LAT, string LON, string FIX, string COG, string SPD, string BAT, string SSI, string HRS, string ALT, string DST, string SWV) {
            object[] results = this.Invoke("Redirect", new object[] {
                        IMS,
                        SEN,
                        FUN,
                        LAT,
                        LON,
                        FIX,
                        COG,
                        SPD,
                        BAT,
                        SSI,
                        HRS,
                        ALT,
                        DST,
                        SWV});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void RedirectAsync(string IMS, string SEN, string FUN, string LAT, string LON, string FIX, string COG, string SPD, string BAT, string SSI, string HRS, string ALT, string DST, string SWV) {
            this.RedirectAsync(IMS, SEN, FUN, LAT, LON, FIX, COG, SPD, BAT, SSI, HRS, ALT, DST, SWV, null);
        }
        
        /// <remarks/>
        public void RedirectAsync(string IMS, string SEN, string FUN, string LAT, string LON, string FIX, string COG, string SPD, string BAT, string SSI, string HRS, string ALT, string DST, string SWV, object userState) {
            if ((this.RedirectOperationCompleted == null)) {
                this.RedirectOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRedirectOperationCompleted);
            }
            this.InvokeAsync("Redirect", new object[] {
                        IMS,
                        SEN,
                        FUN,
                        LAT,
                        LON,
                        FIX,
                        COG,
                        SPD,
                        BAT,
                        SSI,
                        HRS,
                        ALT,
                        DST,
                        SWV}, this.RedirectOperationCompleted, userState);
        }
        
        private void OnRedirectOperationCompleted(object arg) {
            if ((this.RedirectCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RedirectCompleted(this, new RedirectCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.theblackhawk.co.nz/RecordEvent", RequestNamespace="http://www.theblackhawk.co.nz/", ResponseNamespace="http://www.theblackhawk.co.nz/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string RecordEvent(string message, int port) {
            object[] results = this.Invoke("RecordEvent", new object[] {
                        message,
                        port});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void RecordEventAsync(string message, int port) {
            this.RecordEventAsync(message, port, null);
        }
        
        /// <remarks/>
        public void RecordEventAsync(string message, int port, object userState) {
            if ((this.RecordEventOperationCompleted == null)) {
                this.RecordEventOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRecordEventOperationCompleted);
            }
            this.InvokeAsync("RecordEvent", new object[] {
                        message,
                        port}, this.RecordEventOperationCompleted, userState);
        }
        
        private void OnRecordEventOperationCompleted(object arg) {
            if ((this.RecordEventCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.RecordEventCompleted(this, new RecordEventCompletedEventArgs(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) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsForDeviceCompletedEventHandler(object sender, GetEventsForDeviceCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsForDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsForDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsForDevicesCompletedEventHandler(object sender, GetEventsForDevicesCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsForDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsForDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void FindEventsForDeviceByFunctionCompletedEventHandler(object sender, FindEventsForDeviceByFunctionCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class FindEventsForDeviceByFunctionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal FindEventsForDeviceByFunctionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsForCustomerCompletedEventHandler(object sender, GetEventsForCustomerCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsForCustomerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsForCustomerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void GetEventsForDeviceSetFromEventCompletedEventHandler(object sender, GetEventsForDeviceSetFromEventCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEventsForDeviceSetFromEventCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEventsForDeviceSetFromEventCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataTable Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataTable)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void RedirectCompletedEventHandler(object sender, RedirectCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RedirectCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RedirectCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    public delegate void RecordEventCompletedEventHandler(object sender, RecordEventCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.1433")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class RecordEventCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal RecordEventCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591