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

namespace WSClient.localhost {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")]
    public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
        
        private System.Threading.SendOrPostCallback StringConcatOperationCompleted;
        
        private System.Threading.SendOrPostCallback TransferOperationCompleted;
        
        private System.Threading.SendOrPostCallback InquiryOperationCompleted;
        
        private System.Threading.SendOrPostCallback DepositOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetSessionVariableOperationCompleted;
        
        private System.Threading.SendOrPostCallback QuerySessionVariableOperationCompleted;
        
        private System.Threading.SendOrPostCallback SetAppVariableOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetAppVariableOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public Service() {
            this.Url = global::WSClient.Properties.Settings.Default.WSClient_localhost_Service;
            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 HelloWorldCompletedEventHandler HelloWorldCompleted;
        
        /// <remarks/>
        public event StringConcatCompletedEventHandler StringConcatCompleted;
        
        /// <remarks/>
        public event TransferCompletedEventHandler TransferCompleted;
        
        /// <remarks/>
        public event InquiryCompletedEventHandler InquiryCompleted;
        
        /// <remarks/>
        public event DepositCompletedEventHandler DepositCompleted;
        
        /// <remarks/>
        public event SetSessionVariableCompletedEventHandler SetSessionVariableCompleted;
        
        /// <remarks/>
        public event QuerySessionVariableCompletedEventHandler QuerySessionVariableCompleted;
        
        /// <remarks/>
        public event SetAppVariableCompletedEventHandler SetAppVariableCompleted;
        
        /// <remarks/>
        public event GetAppVariableCompletedEventHandler GetAppVariableCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string HelloWorld() {
            object[] results = this.Invoke("HelloWorld", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void HelloWorldAsync() {
            this.HelloWorldAsync(null);
        }
        
        /// <remarks/>
        public void HelloWorldAsync(object userState) {
            if ((this.HelloWorldOperationCompleted == null)) {
                this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted);
            }
            this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState);
        }
        
        private void OnHelloWorldOperationCompleted(object arg) {
            if ((this.HelloWorldCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/StringConcat", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int StringConcat(string string1, string string2, out string stringTotal) {
            object[] results = this.Invoke("StringConcat", new object[] {
                        string1,
                        string2});
            stringTotal = ((string)(results[1]));
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void StringConcatAsync(string string1, string string2) {
            this.StringConcatAsync(string1, string2, null);
        }
        
        /// <remarks/>
        public void StringConcatAsync(string string1, string string2, object userState) {
            if ((this.StringConcatOperationCompleted == null)) {
                this.StringConcatOperationCompleted = new System.Threading.SendOrPostCallback(this.OnStringConcatOperationCompleted);
            }
            this.InvokeAsync("StringConcat", new object[] {
                        string1,
                        string2}, this.StringConcatOperationCompleted, userState);
        }
        
        private void OnStringConcatOperationCompleted(object arg) {
            if ((this.StringConcatCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.StringConcatCompleted(this, new StringConcatCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Transfer", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void Transfer(string sourceAccount, string destAccount, decimal amount) {
            this.Invoke("Transfer", new object[] {
                        sourceAccount,
                        destAccount,
                        amount});
        }
        
        /// <remarks/>
        public void TransferAsync(string sourceAccount, string destAccount, decimal amount) {
            this.TransferAsync(sourceAccount, destAccount, amount, null);
        }
        
        /// <remarks/>
        public void TransferAsync(string sourceAccount, string destAccount, decimal amount, object userState) {
            if ((this.TransferOperationCompleted == null)) {
                this.TransferOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTransferOperationCompleted);
            }
            this.InvokeAsync("Transfer", new object[] {
                        sourceAccount,
                        destAccount,
                        amount}, this.TransferOperationCompleted, userState);
        }
        
        private void OnTransferOperationCompleted(object arg) {
            if ((this.TransferCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.TransferCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Inquiry", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public decimal Inquiry(string account) {
            object[] results = this.Invoke("Inquiry", new object[] {
                        account});
            return ((decimal)(results[0]));
        }
        
        /// <remarks/>
        public void InquiryAsync(string account) {
            this.InquiryAsync(account, null);
        }
        
        /// <remarks/>
        public void InquiryAsync(string account, object userState) {
            if ((this.InquiryOperationCompleted == null)) {
                this.InquiryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInquiryOperationCompleted);
            }
            this.InvokeAsync("Inquiry", new object[] {
                        account}, this.InquiryOperationCompleted, userState);
        }
        
        private void OnInquiryOperationCompleted(object arg) {
            if ((this.InquiryCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.InquiryCompleted(this, new InquiryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Deposit", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void Deposit(string destAccount, decimal amount) {
            this.Invoke("Deposit", new object[] {
                        destAccount,
                        amount});
        }
        
        /// <remarks/>
        public void DepositAsync(string destAccount, decimal amount) {
            this.DepositAsync(destAccount, amount, null);
        }
        
        /// <remarks/>
        public void DepositAsync(string destAccount, decimal amount, object userState) {
            if ((this.DepositOperationCompleted == null)) {
                this.DepositOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDepositOperationCompleted);
            }
            this.InvokeAsync("Deposit", new object[] {
                        destAccount,
                        amount}, this.DepositOperationCompleted, userState);
        }
        
        private void OnDepositOperationCompleted(object arg) {
            if ((this.DepositCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DepositCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetSessionVariable", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void SetSessionVariable(string variable, string value) {
            this.Invoke("SetSessionVariable", new object[] {
                        variable,
                        value});
        }
        
        /// <remarks/>
        public void SetSessionVariableAsync(string variable, string value) {
            this.SetSessionVariableAsync(variable, value, null);
        }
        
        /// <remarks/>
        public void SetSessionVariableAsync(string variable, string value, object userState) {
            if ((this.SetSessionVariableOperationCompleted == null)) {
                this.SetSessionVariableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSessionVariableOperationCompleted);
            }
            this.InvokeAsync("SetSessionVariable", new object[] {
                        variable,
                        value}, this.SetSessionVariableOperationCompleted, userState);
        }
        
        private void OnSetSessionVariableOperationCompleted(object arg) {
            if ((this.SetSessionVariableCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetSessionVariableCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/QuerySessionVariable", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string QuerySessionVariable(string variable) {
            object[] results = this.Invoke("QuerySessionVariable", new object[] {
                        variable});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void QuerySessionVariableAsync(string variable) {
            this.QuerySessionVariableAsync(variable, null);
        }
        
        /// <remarks/>
        public void QuerySessionVariableAsync(string variable, object userState) {
            if ((this.QuerySessionVariableOperationCompleted == null)) {
                this.QuerySessionVariableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnQuerySessionVariableOperationCompleted);
            }
            this.InvokeAsync("QuerySessionVariable", new object[] {
                        variable}, this.QuerySessionVariableOperationCompleted, userState);
        }
        
        private void OnQuerySessionVariableOperationCompleted(object arg) {
            if ((this.QuerySessionVariableCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.QuerySessionVariableCompleted(this, new QuerySessionVariableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetAppVariable", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void SetAppVariable(string variable, string value) {
            this.Invoke("SetAppVariable", new object[] {
                        variable,
                        value});
        }
        
        /// <remarks/>
        public void SetAppVariableAsync(string variable, string value) {
            this.SetAppVariableAsync(variable, value, null);
        }
        
        /// <remarks/>
        public void SetAppVariableAsync(string variable, string value, object userState) {
            if ((this.SetAppVariableOperationCompleted == null)) {
                this.SetAppVariableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetAppVariableOperationCompleted);
            }
            this.InvokeAsync("SetAppVariable", new object[] {
                        variable,
                        value}, this.SetAppVariableOperationCompleted, userState);
        }
        
        private void OnSetAppVariableOperationCompleted(object arg) {
            if ((this.SetAppVariableCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SetAppVariableCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAppVariable", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAppVariable(string variable) {
            object[] results = this.Invoke("GetAppVariable", new object[] {
                        variable});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetAppVariableAsync(string variable) {
            this.GetAppVariableAsync(variable, null);
        }
        
        /// <remarks/>
        public void GetAppVariableAsync(string variable, object userState) {
            if ((this.GetAppVariableOperationCompleted == null)) {
                this.GetAppVariableOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAppVariableOperationCompleted);
            }
            this.InvokeAsync("GetAppVariable", new object[] {
                        variable}, this.GetAppVariableOperationCompleted, userState);
        }
        
        private void OnGetAppVariableOperationCompleted(object arg) {
            if ((this.GetAppVariableCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetAppVariableCompleted(this, new GetAppVariableCompletedEventArgs(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.42")]
    public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal HelloWorldCompletedEventArgs(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.42")]
    public delegate void StringConcatCompletedEventHandler(object sender, StringConcatCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class StringConcatCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal StringConcatCompletedEventArgs(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]));
            }
        }
        
        /// <remarks/>
        public string stringTotal {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void TransferCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void InquiryCompletedEventHandler(object sender, InquiryCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class InquiryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal InquiryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public decimal Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((decimal)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void DepositCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void SetSessionVariableCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void QuerySessionVariableCompletedEventHandler(object sender, QuerySessionVariableCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class QuerySessionVariableCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal QuerySessionVariableCompletedEventArgs(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.42")]
    public delegate void SetAppVariableCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    public delegate void GetAppVariableCompletedEventHandler(object sender, GetAppVariableCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetAppVariableCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetAppVariableCompletedEventArgs(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