//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.239 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 4.0.50826.0 // namespace SalvestavSilverlight.ServiceReference1 { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.SalvestusteenusSoap")] public interface SalvestusteenusSoap { [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/HelloWorld", ReplyAction="*")] System.IAsyncResult BeginHelloWorld(SalvestavSilverlight.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState); SalvestavSilverlight.ServiceReference1.HelloWorldResponse EndHelloWorld(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/LisaTekst", ReplyAction="*")] System.IAsyncResult BeginLisaTekst(SalvestavSilverlight.ServiceReference1.LisaTekstRequest request, System.AsyncCallback callback, object asyncState); SalvestavSilverlight.ServiceReference1.LisaTekstResponse EndLisaTekst(System.IAsyncResult result); [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/KysiTekst", ReplyAction="*")] System.IAsyncResult BeginKysiTekst(SalvestavSilverlight.ServiceReference1.KysiTekstRequest request, System.AsyncCallback callback, object asyncState); SalvestavSilverlight.ServiceReference1.KysiTekstResponse EndKysiTekst(System.IAsyncResult result); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class HelloWorldRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorld", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.HelloWorldRequestBody Body; public HelloWorldRequest() { } public HelloWorldRequest(SalvestavSilverlight.ServiceReference1.HelloWorldRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class HelloWorldRequestBody { public HelloWorldRequestBody() { } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class HelloWorldResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="HelloWorldResponse", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.HelloWorldResponseBody Body; public HelloWorldResponse() { } public HelloWorldResponse(SalvestavSilverlight.ServiceReference1.HelloWorldResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [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.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class LisaTekstRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="LisaTekst", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.LisaTekstRequestBody Body; public LisaTekstRequest() { } public LisaTekstRequest(SalvestavSilverlight.ServiceReference1.LisaTekstRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class LisaTekstRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string tekst; public LisaTekstRequestBody() { } public LisaTekstRequestBody(string tekst) { this.tekst = tekst; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class LisaTekstResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="LisaTekstResponse", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.LisaTekstResponseBody Body; public LisaTekstResponse() { } public LisaTekstResponse(SalvestavSilverlight.ServiceReference1.LisaTekstResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class LisaTekstResponseBody { public LisaTekstResponseBody() { } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class KysiTekstRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="KysiTekst", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.KysiTekstRequestBody Body; public KysiTekstRequest() { } public KysiTekstRequest(SalvestavSilverlight.ServiceReference1.KysiTekstRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class KysiTekstRequestBody { public KysiTekstRequestBody() { } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class KysiTekstResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="KysiTekstResponse", Namespace="http://tempuri.org/", Order=0)] public SalvestavSilverlight.ServiceReference1.KysiTekstResponseBody Body; public KysiTekstResponse() { } public KysiTekstResponse(SalvestavSilverlight.ServiceReference1.KysiTekstResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class KysiTekstResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string KysiTekstResult; public KysiTekstResponseBody() { } public KysiTekstResponseBody(string KysiTekstResult) { this.KysiTekstResult = KysiTekstResult; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public interface SalvestusteenusSoapChannel : SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.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", "4.0.0.0")] public partial class KysiTekstCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; public KysiTekstCompletedEventArgs(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", "4.0.0.0")] public partial class SalvestusteenusSoapClient : System.ServiceModel.ClientBase, SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap { private BeginOperationDelegate onBeginHelloWorldDelegate; private EndOperationDelegate onEndHelloWorldDelegate; private System.Threading.SendOrPostCallback onHelloWorldCompletedDelegate; private BeginOperationDelegate onBeginLisaTekstDelegate; private EndOperationDelegate onEndLisaTekstDelegate; private System.Threading.SendOrPostCallback onLisaTekstCompletedDelegate; private BeginOperationDelegate onBeginKysiTekstDelegate; private EndOperationDelegate onEndKysiTekstDelegate; private System.Threading.SendOrPostCallback onKysiTekstCompletedDelegate; private BeginOperationDelegate onBeginOpenDelegate; private EndOperationDelegate onEndOpenDelegate; private System.Threading.SendOrPostCallback onOpenCompletedDelegate; private BeginOperationDelegate onBeginCloseDelegate; private EndOperationDelegate onEndCloseDelegate; private System.Threading.SendOrPostCallback onCloseCompletedDelegate; public SalvestusteenusSoapClient() { } public SalvestusteenusSoapClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public SalvestusteenusSoapClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public SalvestusteenusSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public SalvestusteenusSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public System.Net.CookieContainer CookieContainer { get { System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty(); if ((httpCookieContainerManager != null)) { return httpCookieContainerManager.CookieContainer; } else { return null; } } set { System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty(); if ((httpCookieContainerManager != null)) { httpCookieContainerManager.CookieContainer = value; } else { throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" + "ookieContainerBindingElement."); } } } public event System.EventHandler HelloWorldCompleted; public event System.EventHandler LisaTekstCompleted; public event System.EventHandler KysiTekstCompleted; public event System.EventHandler OpenCompleted; public event System.EventHandler CloseCompleted; [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.IAsyncResult SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.BeginHelloWorld(SalvestavSilverlight.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) { SalvestavSilverlight.ServiceReference1.HelloWorldRequest inValue = new SalvestavSilverlight.ServiceReference1.HelloWorldRequest(); inValue.Body = new SalvestavSilverlight.ServiceReference1.HelloWorldRequestBody(); return ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(this)).BeginHelloWorld(inValue, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] SalvestavSilverlight.ServiceReference1.HelloWorldResponse SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.EndHelloWorld(System.IAsyncResult result) { return base.Channel.EndHelloWorld(result); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] private string EndHelloWorld(System.IAsyncResult result) { SalvestavSilverlight.ServiceReference1.HelloWorldResponse retVal = ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(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); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.IAsyncResult SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.BeginLisaTekst(SalvestavSilverlight.ServiceReference1.LisaTekstRequest request, System.AsyncCallback callback, object asyncState) { return base.Channel.BeginLisaTekst(request, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] private System.IAsyncResult BeginLisaTekst(string tekst, System.AsyncCallback callback, object asyncState) { SalvestavSilverlight.ServiceReference1.LisaTekstRequest inValue = new SalvestavSilverlight.ServiceReference1.LisaTekstRequest(); inValue.Body = new SalvestavSilverlight.ServiceReference1.LisaTekstRequestBody(); inValue.Body.tekst = tekst; return ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(this)).BeginLisaTekst(inValue, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] SalvestavSilverlight.ServiceReference1.LisaTekstResponse SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.EndLisaTekst(System.IAsyncResult result) { return base.Channel.EndLisaTekst(result); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] private void EndLisaTekst(System.IAsyncResult result) { SalvestavSilverlight.ServiceReference1.LisaTekstResponse retVal = ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(this)).EndLisaTekst(result); } private System.IAsyncResult OnBeginLisaTekst(object[] inValues, System.AsyncCallback callback, object asyncState) { string tekst = ((string)(inValues[0])); return this.BeginLisaTekst(tekst, callback, asyncState); } private object[] OnEndLisaTekst(System.IAsyncResult result) { this.EndLisaTekst(result); return null; } private void OnLisaTekstCompleted(object state) { if ((this.LisaTekstCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.LisaTekstCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); } } public void LisaTekstAsync(string tekst) { this.LisaTekstAsync(tekst, null); } public void LisaTekstAsync(string tekst, object userState) { if ((this.onBeginLisaTekstDelegate == null)) { this.onBeginLisaTekstDelegate = new BeginOperationDelegate(this.OnBeginLisaTekst); } if ((this.onEndLisaTekstDelegate == null)) { this.onEndLisaTekstDelegate = new EndOperationDelegate(this.OnEndLisaTekst); } if ((this.onLisaTekstCompletedDelegate == null)) { this.onLisaTekstCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLisaTekstCompleted); } base.InvokeAsync(this.onBeginLisaTekstDelegate, new object[] { tekst}, this.onEndLisaTekstDelegate, this.onLisaTekstCompletedDelegate, userState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.IAsyncResult SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.BeginKysiTekst(SalvestavSilverlight.ServiceReference1.KysiTekstRequest request, System.AsyncCallback callback, object asyncState) { return base.Channel.BeginKysiTekst(request, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] private System.IAsyncResult BeginKysiTekst(System.AsyncCallback callback, object asyncState) { SalvestavSilverlight.ServiceReference1.KysiTekstRequest inValue = new SalvestavSilverlight.ServiceReference1.KysiTekstRequest(); inValue.Body = new SalvestavSilverlight.ServiceReference1.KysiTekstRequestBody(); return ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(this)).BeginKysiTekst(inValue, callback, asyncState); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] SalvestavSilverlight.ServiceReference1.KysiTekstResponse SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap.EndKysiTekst(System.IAsyncResult result) { return base.Channel.EndKysiTekst(result); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] private string EndKysiTekst(System.IAsyncResult result) { SalvestavSilverlight.ServiceReference1.KysiTekstResponse retVal = ((SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap)(this)).EndKysiTekst(result); return retVal.Body.KysiTekstResult; } private System.IAsyncResult OnBeginKysiTekst(object[] inValues, System.AsyncCallback callback, object asyncState) { return this.BeginKysiTekst(callback, asyncState); } private object[] OnEndKysiTekst(System.IAsyncResult result) { string retVal = this.EndKysiTekst(result); return new object[] { retVal}; } private void OnKysiTekstCompleted(object state) { if ((this.KysiTekstCompleted != null)) { InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); this.KysiTekstCompleted(this, new KysiTekstCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); } } public void KysiTekstAsync() { this.KysiTekstAsync(null); } public void KysiTekstAsync(object userState) { if ((this.onBeginKysiTekstDelegate == null)) { this.onBeginKysiTekstDelegate = new BeginOperationDelegate(this.OnBeginKysiTekst); } if ((this.onEndKysiTekstDelegate == null)) { this.onEndKysiTekstDelegate = new EndOperationDelegate(this.OnEndKysiTekst); } if ((this.onKysiTekstCompletedDelegate == null)) { this.onKysiTekstCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnKysiTekstCompleted); } base.InvokeAsync(this.onBeginKysiTekstDelegate, null, this.onEndKysiTekstDelegate, this.onKysiTekstCompletedDelegate, 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 SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap CreateChannel() { return new SalvestusteenusSoapClientChannel(this); } private class SalvestusteenusSoapClientChannel : ChannelBase, SalvestavSilverlight.ServiceReference1.SalvestusteenusSoap { public SalvestusteenusSoapClientChannel(System.ServiceModel.ClientBase client) : base(client) { } public System.IAsyncResult BeginHelloWorld(SalvestavSilverlight.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 SalvestavSilverlight.ServiceReference1.HelloWorldResponse EndHelloWorld(System.IAsyncResult result) { object[] _args = new object[0]; SalvestavSilverlight.ServiceReference1.HelloWorldResponse _result = ((SalvestavSilverlight.ServiceReference1.HelloWorldResponse)(base.EndInvoke("HelloWorld", _args, result))); return _result; } public System.IAsyncResult BeginLisaTekst(SalvestavSilverlight.ServiceReference1.LisaTekstRequest request, System.AsyncCallback callback, object asyncState) { object[] _args = new object[1]; _args[0] = request; System.IAsyncResult _result = base.BeginInvoke("LisaTekst", _args, callback, asyncState); return _result; } public SalvestavSilverlight.ServiceReference1.LisaTekstResponse EndLisaTekst(System.IAsyncResult result) { object[] _args = new object[0]; SalvestavSilverlight.ServiceReference1.LisaTekstResponse _result = ((SalvestavSilverlight.ServiceReference1.LisaTekstResponse)(base.EndInvoke("LisaTekst", _args, result))); return _result; } public System.IAsyncResult BeginKysiTekst(SalvestavSilverlight.ServiceReference1.KysiTekstRequest request, System.AsyncCallback callback, object asyncState) { object[] _args = new object[1]; _args[0] = request; System.IAsyncResult _result = base.BeginInvoke("KysiTekst", _args, callback, asyncState); return _result; } public SalvestavSilverlight.ServiceReference1.KysiTekstResponse EndKysiTekst(System.IAsyncResult result) { object[] _args = new object[0]; SalvestavSilverlight.ServiceReference1.KysiTekstResponse _result = ((SalvestavSilverlight.ServiceReference1.KysiTekstResponse)(base.EndInvoke("KysiTekst", _args, result))); return _result; } } } }