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

// 
// This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 2.0.5.0
// 
namespace Signature.ServiceReference1 {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.WebServiceSoap")]
    public interface WebServiceSoap {
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/SaveSignature", ReplyAction="*")]
        System.IAsyncResult BeginSaveSignature(Signature.ServiceReference1.SaveSignatureRequest request, System.AsyncCallback callback, object asyncState);
        
        Signature.ServiceReference1.SaveSignatureResponse EndSaveSignature(System.IAsyncResult result);
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/GetSignature", ReplyAction="*")]
        System.IAsyncResult BeginGetSignature(Signature.ServiceReference1.GetSignatureRequest request, System.AsyncCallback callback, object asyncState);
        
        Signature.ServiceReference1.GetSignatureResponse EndGetSignature(System.IAsyncResult result);
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/HelloWorld", ReplyAction="*")]
        System.IAsyncResult BeginHelloWorld(Signature.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState);
        
        Signature.ServiceReference1.HelloWorldResponse EndHelloWorld(System.IAsyncResult result);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class SaveSignatureRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="SaveSignature", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.SaveSignatureRequestBody Body;
        
        public SaveSignatureRequest() {
        }
        
        public SaveSignatureRequest(Signature.ServiceReference1.SaveSignatureRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class SaveSignatureRequestBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string value;
        
        public SaveSignatureRequestBody() {
        }
        
        public SaveSignatureRequestBody(string value) {
            this.value = value;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class SaveSignatureResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="SaveSignatureResponse", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.SaveSignatureResponseBody Body;
        
        public SaveSignatureResponse() {
        }
        
        public SaveSignatureResponse(Signature.ServiceReference1.SaveSignatureResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class SaveSignatureResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(Order=0)]
        public bool SaveSignatureResult;
        
        public SaveSignatureResponseBody() {
        }
        
        public SaveSignatureResponseBody(bool SaveSignatureResult) {
            this.SaveSignatureResult = SaveSignatureResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetSignatureRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetSignature", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.GetSignatureRequestBody Body;
        
        public GetSignatureRequest() {
        }
        
        public GetSignatureRequest(Signature.ServiceReference1.GetSignatureRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class GetSignatureRequestBody {
        
        public GetSignatureRequestBody() {
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetSignatureResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetSignatureResponse", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.GetSignatureResponseBody Body;
        
        public GetSignatureResponse() {
        }
        
        public GetSignatureResponse(Signature.ServiceReference1.GetSignatureResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetSignatureResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string GetSignatureResult;
        
        public GetSignatureResponseBody() {
        }
        
        public GetSignatureResponseBody(string GetSignatureResult) {
            this.GetSignatureResult = GetSignatureResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class HelloWorldRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorld", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.HelloWorldRequestBody Body;
        
        public HelloWorldRequest() {
        }
        
        public HelloWorldRequest(Signature.ServiceReference1.HelloWorldRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class HelloWorldRequestBody {
        
        public HelloWorldRequestBody() {
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class HelloWorldResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorldResponse", Namespace="http://tempuri.org/", Order=0)]
        public Signature.ServiceReference1.HelloWorldResponseBody Body;
        
        public HelloWorldResponse() {
        }
        
        public HelloWorldResponse(Signature.ServiceReference1.HelloWorldResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class HelloWorldResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string HelloWorldResult;
        
        public HelloWorldResponseBody() {
        }
        
        public HelloWorldResponseBody(string HelloWorldResult) {
            this.HelloWorldResult = HelloWorldResult;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface WebServiceSoapChannel : Signature.ServiceReference1.WebServiceSoap, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class SaveSignatureCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public SaveSignatureCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public bool Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class GetSignatureCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public GetSignatureCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public string Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public string Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class WebServiceSoapClient : System.ServiceModel.ClientBase<Signature.ServiceReference1.WebServiceSoap>, Signature.ServiceReference1.WebServiceSoap {
        
        private BeginOperationDelegate onBeginSaveSignatureDelegate;
        
        private EndOperationDelegate onEndSaveSignatureDelegate;
        
        private System.Threading.SendOrPostCallback onSaveSignatureCompletedDelegate;
        
        private BeginOperationDelegate onBeginGetSignatureDelegate;
        
        private EndOperationDelegate onEndGetSignatureDelegate;
        
        private System.Threading.SendOrPostCallback onGetSignatureCompletedDelegate;
        
        private BeginOperationDelegate onBeginHelloWorldDelegate;
        
        private EndOperationDelegate onEndHelloWorldDelegate;
        
        private System.Threading.SendOrPostCallback onHelloWorldCompletedDelegate;
        
        private BeginOperationDelegate onBeginOpenDelegate;
        
        private EndOperationDelegate onEndOpenDelegate;
        
        private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
        
        private BeginOperationDelegate onBeginCloseDelegate;
        
        private EndOperationDelegate onEndCloseDelegate;
        
        private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
        
        public WebServiceSoapClient() {
        }
        
        public WebServiceSoapClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public WebServiceSoapClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WebServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WebServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public event System.EventHandler<SaveSignatureCompletedEventArgs> SaveSignatureCompleted;
        
        public event System.EventHandler<GetSignatureCompletedEventArgs> GetSignatureCompleted;
        
        public event System.EventHandler<HelloWorldCompletedEventArgs> HelloWorldCompleted;
        
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
        
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult Signature.ServiceReference1.WebServiceSoap.BeginSaveSignature(Signature.ServiceReference1.SaveSignatureRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginSaveSignature(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginSaveSignature(string value, System.AsyncCallback callback, object asyncState) {
            Signature.ServiceReference1.SaveSignatureRequest inValue = new Signature.ServiceReference1.SaveSignatureRequest();
            inValue.Body = new Signature.ServiceReference1.SaveSignatureRequestBody();
            inValue.Body.value = value;
            return ((Signature.ServiceReference1.WebServiceSoap)(this)).BeginSaveSignature(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Signature.ServiceReference1.SaveSignatureResponse Signature.ServiceReference1.WebServiceSoap.EndSaveSignature(System.IAsyncResult result) {
            return base.Channel.EndSaveSignature(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private bool EndSaveSignature(System.IAsyncResult result) {
            Signature.ServiceReference1.SaveSignatureResponse retVal = ((Signature.ServiceReference1.WebServiceSoap)(this)).EndSaveSignature(result);
            return retVal.Body.SaveSignatureResult;
        }
        
        private System.IAsyncResult OnBeginSaveSignature(object[] inValues, System.AsyncCallback callback, object asyncState) {
            string value = ((string)(inValues[0]));
            return this.BeginSaveSignature(value, callback, asyncState);
        }
        
        private object[] OnEndSaveSignature(System.IAsyncResult result) {
            bool retVal = this.EndSaveSignature(result);
            return new object[] {
                    retVal};
        }
        
        private void OnSaveSignatureCompleted(object state) {
            if ((this.SaveSignatureCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.SaveSignatureCompleted(this, new SaveSignatureCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void SaveSignatureAsync(string value) {
            this.SaveSignatureAsync(value, null);
        }
        
        public void SaveSignatureAsync(string value, object userState) {
            if ((this.onBeginSaveSignatureDelegate == null)) {
                this.onBeginSaveSignatureDelegate = new BeginOperationDelegate(this.OnBeginSaveSignature);
            }
            if ((this.onEndSaveSignatureDelegate == null)) {
                this.onEndSaveSignatureDelegate = new EndOperationDelegate(this.OnEndSaveSignature);
            }
            if ((this.onSaveSignatureCompletedDelegate == null)) {
                this.onSaveSignatureCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSaveSignatureCompleted);
            }
            base.InvokeAsync(this.onBeginSaveSignatureDelegate, new object[] {
                        value}, this.onEndSaveSignatureDelegate, this.onSaveSignatureCompletedDelegate, userState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult Signature.ServiceReference1.WebServiceSoap.BeginGetSignature(Signature.ServiceReference1.GetSignatureRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginGetSignature(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginGetSignature(System.AsyncCallback callback, object asyncState) {
            Signature.ServiceReference1.GetSignatureRequest inValue = new Signature.ServiceReference1.GetSignatureRequest();
            inValue.Body = new Signature.ServiceReference1.GetSignatureRequestBody();
            return ((Signature.ServiceReference1.WebServiceSoap)(this)).BeginGetSignature(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Signature.ServiceReference1.GetSignatureResponse Signature.ServiceReference1.WebServiceSoap.EndGetSignature(System.IAsyncResult result) {
            return base.Channel.EndGetSignature(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private string EndGetSignature(System.IAsyncResult result) {
            Signature.ServiceReference1.GetSignatureResponse retVal = ((Signature.ServiceReference1.WebServiceSoap)(this)).EndGetSignature(result);
            return retVal.Body.GetSignatureResult;
        }
        
        private System.IAsyncResult OnBeginGetSignature(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return this.BeginGetSignature(callback, asyncState);
        }
        
        private object[] OnEndGetSignature(System.IAsyncResult result) {
            string retVal = this.EndGetSignature(result);
            return new object[] {
                    retVal};
        }
        
        private void OnGetSignatureCompleted(object state) {
            if ((this.GetSignatureCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.GetSignatureCompleted(this, new GetSignatureCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void GetSignatureAsync() {
            this.GetSignatureAsync(null);
        }
        
        public void GetSignatureAsync(object userState) {
            if ((this.onBeginGetSignatureDelegate == null)) {
                this.onBeginGetSignatureDelegate = new BeginOperationDelegate(this.OnBeginGetSignature);
            }
            if ((this.onEndGetSignatureDelegate == null)) {
                this.onEndGetSignatureDelegate = new EndOperationDelegate(this.OnEndGetSignature);
            }
            if ((this.onGetSignatureCompletedDelegate == null)) {
                this.onGetSignatureCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetSignatureCompleted);
            }
            base.InvokeAsync(this.onBeginGetSignatureDelegate, null, this.onEndGetSignatureDelegate, this.onGetSignatureCompletedDelegate, userState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult Signature.ServiceReference1.WebServiceSoap.BeginHelloWorld(Signature.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginHelloWorld(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginHelloWorld(System.AsyncCallback callback, object asyncState) {
            Signature.ServiceReference1.HelloWorldRequest inValue = new Signature.ServiceReference1.HelloWorldRequest();
            inValue.Body = new Signature.ServiceReference1.HelloWorldRequestBody();
            return ((Signature.ServiceReference1.WebServiceSoap)(this)).BeginHelloWorld(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        Signature.ServiceReference1.HelloWorldResponse Signature.ServiceReference1.WebServiceSoap.EndHelloWorld(System.IAsyncResult result) {
            return base.Channel.EndHelloWorld(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private string EndHelloWorld(System.IAsyncResult result) {
            Signature.ServiceReference1.HelloWorldResponse retVal = ((Signature.ServiceReference1.WebServiceSoap)(this)).EndHelloWorld(result);
            return retVal.Body.HelloWorldResult;
        }
        
        private System.IAsyncResult OnBeginHelloWorld(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return this.BeginHelloWorld(callback, asyncState);
        }
        
        private object[] OnEndHelloWorld(System.IAsyncResult result) {
            string retVal = this.EndHelloWorld(result);
            return new object[] {
                    retVal};
        }
        
        private void OnHelloWorldCompleted(object state) {
            if ((this.HelloWorldCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void HelloWorldAsync() {
            this.HelloWorldAsync(null);
        }
        
        public void HelloWorldAsync(object userState) {
            if ((this.onBeginHelloWorldDelegate == null)) {
                this.onBeginHelloWorldDelegate = new BeginOperationDelegate(this.OnBeginHelloWorld);
            }
            if ((this.onEndHelloWorldDelegate == null)) {
                this.onEndHelloWorldDelegate = new EndOperationDelegate(this.OnEndHelloWorld);
            }
            if ((this.onHelloWorldCompletedDelegate == null)) {
                this.onHelloWorldCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnHelloWorldCompleted);
            }
            base.InvokeAsync(this.onBeginHelloWorldDelegate, null, this.onEndHelloWorldDelegate, this.onHelloWorldCompletedDelegate, userState);
        }
        
        private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
        }
        
        private object[] OnEndOpen(System.IAsyncResult result) {
            ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
            return null;
        }
        
        private void OnOpenCompleted(object state) {
            if ((this.OpenCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void OpenAsync() {
            this.OpenAsync(null);
        }
        
        public void OpenAsync(object userState) {
            if ((this.onBeginOpenDelegate == null)) {
                this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
            }
            if ((this.onEndOpenDelegate == null)) {
                this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
            }
            if ((this.onOpenCompletedDelegate == null)) {
                this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
            }
            base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
        }
        
        private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
        }
        
        private object[] OnEndClose(System.IAsyncResult result) {
            ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
            return null;
        }
        
        private void OnCloseCompleted(object state) {
            if ((this.CloseCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void CloseAsync() {
            this.CloseAsync(null);
        }
        
        public void CloseAsync(object userState) {
            if ((this.onBeginCloseDelegate == null)) {
                this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
            }
            if ((this.onEndCloseDelegate == null)) {
                this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
            }
            if ((this.onCloseCompletedDelegate == null)) {
                this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
            }
            base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
        }
        
        protected override Signature.ServiceReference1.WebServiceSoap CreateChannel() {
            return new WebServiceSoapClientChannel(this);
        }
        
        private class WebServiceSoapClientChannel : ChannelBase<Signature.ServiceReference1.WebServiceSoap>, Signature.ServiceReference1.WebServiceSoap {
            
            public WebServiceSoapClientChannel(System.ServiceModel.ClientBase<Signature.ServiceReference1.WebServiceSoap> client) : 
                    base(client) {
            }
            
            public System.IAsyncResult BeginSaveSignature(Signature.ServiceReference1.SaveSignatureRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("SaveSignature", _args, callback, asyncState);
                return _result;
            }
            
            public Signature.ServiceReference1.SaveSignatureResponse EndSaveSignature(System.IAsyncResult result) {
                object[] _args = new object[0];
                Signature.ServiceReference1.SaveSignatureResponse _result = ((Signature.ServiceReference1.SaveSignatureResponse)(base.EndInvoke("SaveSignature", _args, result)));
                return _result;
            }
            
            public System.IAsyncResult BeginGetSignature(Signature.ServiceReference1.GetSignatureRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("GetSignature", _args, callback, asyncState);
                return _result;
            }
            
            public Signature.ServiceReference1.GetSignatureResponse EndGetSignature(System.IAsyncResult result) {
                object[] _args = new object[0];
                Signature.ServiceReference1.GetSignatureResponse _result = ((Signature.ServiceReference1.GetSignatureResponse)(base.EndInvoke("GetSignature", _args, result)));
                return _result;
            }
            
            public System.IAsyncResult BeginHelloWorld(Signature.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("HelloWorld", _args, callback, asyncState);
                return _result;
            }
            
            public Signature.ServiceReference1.HelloWorldResponse EndHelloWorld(System.IAsyncResult result) {
                object[] _args = new object[0];
                Signature.ServiceReference1.HelloWorldResponse _result = ((Signature.ServiceReference1.HelloWorldResponse)(base.EndInvoke("HelloWorld", _args, result)));
                return _result;
            }
        }
    }
}
