﻿//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     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 4.0.30319.42000.
// 
#pragma warning disable 1591

namespace Socioboard.Api.Affiliates {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    using System.ComponentModel;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="AffiliatesSoap", Namespace="http://tempuri.org/")]
    public partial class Affiliates : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback AddAffiliateDetailOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetAffilieteDetailbyUserIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetAffilieteDetailbyUserIdTransOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddRequestToWithdrawOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetEwalletWithdrawOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetAllEwalletWithdrawOperationCompleted;
        
        private System.Threading.SendOrPostCallback UpdatePaymentStatusOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public Affiliates() {
            this.Url = global::Socioboard.Properties.Settings.Default.Socioboard_Api_Affiliates_Affiliates;
            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 AddAffiliateDetailCompletedEventHandler AddAffiliateDetailCompleted;
        
        /// <remarks/>
        public event GetAffilieteDetailbyUserIdCompletedEventHandler GetAffilieteDetailbyUserIdCompleted;
        
        /// <remarks/>
        public event GetAffilieteDetailbyUserIdTransCompletedEventHandler GetAffilieteDetailbyUserIdTransCompleted;
        
        /// <remarks/>
        public event AddRequestToWithdrawCompletedEventHandler AddRequestToWithdrawCompleted;
        
        /// <remarks/>
        public event GetEwalletWithdrawCompletedEventHandler GetEwalletWithdrawCompleted;
        
        /// <remarks/>
        public event GetAllEwalletWithdrawCompletedEventHandler GetAllEwalletWithdrawCompleted;
        
        /// <remarks/>
        public event UpdatePaymentStatusCompletedEventHandler UpdatePaymentStatusCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddAffiliateDetail", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void AddAffiliateDetail(string UserId, string FriendsUserId, System.DateTime AffiliateDate, string Amount) {
            this.Invoke("AddAffiliateDetail", new object[] {
                        UserId,
                        FriendsUserId,
                        AffiliateDate,
                        Amount});
        }
        
        /// <remarks/>
        public void AddAffiliateDetailAsync(string UserId, string FriendsUserId, System.DateTime AffiliateDate, string Amount) {
            this.AddAffiliateDetailAsync(UserId, FriendsUserId, AffiliateDate, Amount, null);
        }
        
        /// <remarks/>
        public void AddAffiliateDetailAsync(string UserId, string FriendsUserId, System.DateTime AffiliateDate, string Amount, object userState) {
            if ((this.AddAffiliateDetailOperationCompleted == null)) {
                this.AddAffiliateDetailOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddAffiliateDetailOperationCompleted);
            }
            this.InvokeAsync("AddAffiliateDetail", new object[] {
                        UserId,
                        FriendsUserId,
                        AffiliateDate,
                        Amount}, this.AddAffiliateDetailOperationCompleted, userState);
        }
        
        private void OnAddAffiliateDetailOperationCompleted(object arg) {
            if ((this.AddAffiliateDetailCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddAffiliateDetailCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAffilieteDetailbyUserId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAffilieteDetailbyUserId(string UserId, string FriendsUserId) {
            object[] results = this.Invoke("GetAffilieteDetailbyUserId", new object[] {
                        UserId,
                        FriendsUserId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetAffilieteDetailbyUserIdAsync(string UserId, string FriendsUserId) {
            this.GetAffilieteDetailbyUserIdAsync(UserId, FriendsUserId, null);
        }
        
        /// <remarks/>
        public void GetAffilieteDetailbyUserIdAsync(string UserId, string FriendsUserId, object userState) {
            if ((this.GetAffilieteDetailbyUserIdOperationCompleted == null)) {
                this.GetAffilieteDetailbyUserIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAffilieteDetailbyUserIdOperationCompleted);
            }
            this.InvokeAsync("GetAffilieteDetailbyUserId", new object[] {
                        UserId,
                        FriendsUserId}, this.GetAffilieteDetailbyUserIdOperationCompleted, userState);
        }
        
        private void OnGetAffilieteDetailbyUserIdOperationCompleted(object arg) {
            if ((this.GetAffilieteDetailbyUserIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetAffilieteDetailbyUserIdCompleted(this, new GetAffilieteDetailbyUserIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAffilieteDetailbyUserIdTrans", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAffilieteDetailbyUserIdTrans(string UserId) {
            object[] results = this.Invoke("GetAffilieteDetailbyUserIdTrans", new object[] {
                        UserId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetAffilieteDetailbyUserIdTransAsync(string UserId) {
            this.GetAffilieteDetailbyUserIdTransAsync(UserId, null);
        }
        
        /// <remarks/>
        public void GetAffilieteDetailbyUserIdTransAsync(string UserId, object userState) {
            if ((this.GetAffilieteDetailbyUserIdTransOperationCompleted == null)) {
                this.GetAffilieteDetailbyUserIdTransOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAffilieteDetailbyUserIdTransOperationCompleted);
            }
            this.InvokeAsync("GetAffilieteDetailbyUserIdTrans", new object[] {
                        UserId}, this.GetAffilieteDetailbyUserIdTransOperationCompleted, userState);
        }
        
        private void OnGetAffilieteDetailbyUserIdTransOperationCompleted(object arg) {
            if ((this.GetAffilieteDetailbyUserIdTransCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetAffilieteDetailbyUserIdTransCompleted(this, new GetAffilieteDetailbyUserIdTransCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddRequestToWithdraw", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string AddRequestToWithdraw(string WithdrawAmount, string PaymentMethod, string PaypalEmail, string IbanCode, string SwiftCode, string Other, string UserID) {
            object[] results = this.Invoke("AddRequestToWithdraw", new object[] {
                        WithdrawAmount,
                        PaymentMethod,
                        PaypalEmail,
                        IbanCode,
                        SwiftCode,
                        Other,
                        UserID});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void AddRequestToWithdrawAsync(string WithdrawAmount, string PaymentMethod, string PaypalEmail, string IbanCode, string SwiftCode, string Other, string UserID) {
            this.AddRequestToWithdrawAsync(WithdrawAmount, PaymentMethod, PaypalEmail, IbanCode, SwiftCode, Other, UserID, null);
        }
        
        /// <remarks/>
        public void AddRequestToWithdrawAsync(string WithdrawAmount, string PaymentMethod, string PaypalEmail, string IbanCode, string SwiftCode, string Other, string UserID, object userState) {
            if ((this.AddRequestToWithdrawOperationCompleted == null)) {
                this.AddRequestToWithdrawOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRequestToWithdrawOperationCompleted);
            }
            this.InvokeAsync("AddRequestToWithdraw", new object[] {
                        WithdrawAmount,
                        PaymentMethod,
                        PaypalEmail,
                        IbanCode,
                        SwiftCode,
                        Other,
                        UserID}, this.AddRequestToWithdrawOperationCompleted, userState);
        }
        
        private void OnAddRequestToWithdrawOperationCompleted(object arg) {
            if ((this.AddRequestToWithdrawCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddRequestToWithdrawCompleted(this, new AddRequestToWithdrawCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetEwalletWithdraw", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetEwalletWithdraw(string UserId) {
            object[] results = this.Invoke("GetEwalletWithdraw", new object[] {
                        UserId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetEwalletWithdrawAsync(string UserId) {
            this.GetEwalletWithdrawAsync(UserId, null);
        }
        
        /// <remarks/>
        public void GetEwalletWithdrawAsync(string UserId, object userState) {
            if ((this.GetEwalletWithdrawOperationCompleted == null)) {
                this.GetEwalletWithdrawOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEwalletWithdrawOperationCompleted);
            }
            this.InvokeAsync("GetEwalletWithdraw", new object[] {
                        UserId}, this.GetEwalletWithdrawOperationCompleted, userState);
        }
        
        private void OnGetEwalletWithdrawOperationCompleted(object arg) {
            if ((this.GetEwalletWithdrawCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetEwalletWithdrawCompleted(this, new GetEwalletWithdrawCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAllEwalletWithdraw", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAllEwalletWithdraw() {
            object[] results = this.Invoke("GetAllEwalletWithdraw", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetAllEwalletWithdrawAsync() {
            this.GetAllEwalletWithdrawAsync(null);
        }
        
        /// <remarks/>
        public void GetAllEwalletWithdrawAsync(object userState) {
            if ((this.GetAllEwalletWithdrawOperationCompleted == null)) {
                this.GetAllEwalletWithdrawOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllEwalletWithdrawOperationCompleted);
            }
            this.InvokeAsync("GetAllEwalletWithdraw", new object[0], this.GetAllEwalletWithdrawOperationCompleted, userState);
        }
        
        private void OnGetAllEwalletWithdrawOperationCompleted(object arg) {
            if ((this.GetAllEwalletWithdrawCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetAllEwalletWithdrawCompleted(this, new GetAllEwalletWithdrawCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdatePaymentStatus", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int UpdatePaymentStatus(string id, int status) {
            object[] results = this.Invoke("UpdatePaymentStatus", new object[] {
                        id,
                        status});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void UpdatePaymentStatusAsync(string id, int status) {
            this.UpdatePaymentStatusAsync(id, status, null);
        }
        
        /// <remarks/>
        public void UpdatePaymentStatusAsync(string id, int status, object userState) {
            if ((this.UpdatePaymentStatusOperationCompleted == null)) {
                this.UpdatePaymentStatusOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdatePaymentStatusOperationCompleted);
            }
            this.InvokeAsync("UpdatePaymentStatus", new object[] {
                        id,
                        status}, this.UpdatePaymentStatusOperationCompleted, userState);
        }
        
        private void OnUpdatePaymentStatusOperationCompleted(object arg) {
            if ((this.UpdatePaymentStatusCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.UpdatePaymentStatusCompleted(this, new UpdatePaymentStatusCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void AddAffiliateDetailCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    public delegate void GetAffilieteDetailbyUserIdCompletedEventHandler(object sender, GetAffilieteDetailbyUserIdCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetAffilieteDetailbyUserIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetAffilieteDetailbyUserIdCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void GetAffilieteDetailbyUserIdTransCompletedEventHandler(object sender, GetAffilieteDetailbyUserIdTransCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetAffilieteDetailbyUserIdTransCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetAffilieteDetailbyUserIdTransCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void AddRequestToWithdrawCompletedEventHandler(object sender, AddRequestToWithdrawCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddRequestToWithdrawCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddRequestToWithdrawCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void GetEwalletWithdrawCompletedEventHandler(object sender, GetEwalletWithdrawCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetEwalletWithdrawCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetEwalletWithdrawCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void GetAllEwalletWithdrawCompletedEventHandler(object sender, GetAllEwalletWithdrawCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetAllEwalletWithdrawCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetAllEwalletWithdrawCompletedEventArgs(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", "4.6.1055.0")]
    public delegate void UpdatePaymentStatusCompletedEventHandler(object sender, UpdatePaymentStatusCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class UpdatePaymentStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal UpdatePaymentStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591