/Experiments.WebAppThreading/ClientWeb/Service References/ServiceReference1/Reference.cs
C# | 223 lines | 165 code | 48 blank | 10 comment | 8 complexity | 4d9019ac6d596aa84bca3444c25aae1a MD5 | raw file
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.1
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace ClientWeb.ServiceReference1 {
-
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.DelayedHelloSoap")]
- public interface DelayedHelloSoap {
-
- // CODEGEN: Generating message contract since element name HelloWorldResult from namespace http://tempuri.org/ is not marked nillable
- [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/HelloWorld", ReplyAction="*")]
- ClientWeb.ServiceReference1.HelloWorldResponse HelloWorld(ClientWeb.ServiceReference1.HelloWorldRequest request);
-
- [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/HelloWorld", ReplyAction="*")]
- System.IAsyncResult BeginHelloWorld(ClientWeb.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState);
-
- ClientWeb.ServiceReference1.HelloWorldResponse EndHelloWorld(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 ClientWeb.ServiceReference1.HelloWorldRequestBody Body;
-
- public HelloWorldRequest() {
- }
-
- public HelloWorldRequest(ClientWeb.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(Namespace="http://tempuri.org/")]
- public partial class HelloWorldRequestBody {
-
- [System.Runtime.Serialization.DataMemberAttribute(Order=0)]
- public int delay;
-
- public HelloWorldRequestBody() {
- }
-
- public HelloWorldRequestBody(int delay) {
- this.delay = delay;
- }
- }
-
- [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 ClientWeb.ServiceReference1.HelloWorldResponseBody Body;
-
- public HelloWorldResponse() {
- }
-
- public HelloWorldResponse(ClientWeb.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.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
- public interface DelayedHelloSoapChannel : ClientWeb.ServiceReference1.DelayedHelloSoap, 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 DelayedHelloSoapClient : System.ServiceModel.ClientBase<ClientWeb.ServiceReference1.DelayedHelloSoap>, ClientWeb.ServiceReference1.DelayedHelloSoap {
-
- private BeginOperationDelegate onBeginHelloWorldDelegate;
-
- private EndOperationDelegate onEndHelloWorldDelegate;
-
- private System.Threading.SendOrPostCallback onHelloWorldCompletedDelegate;
-
- public DelayedHelloSoapClient() {
- }
-
- public DelayedHelloSoapClient(string endpointConfigurationName) :
- base(endpointConfigurationName) {
- }
-
- public DelayedHelloSoapClient(string endpointConfigurationName, string remoteAddress) :
- base(endpointConfigurationName, remoteAddress) {
- }
-
- public DelayedHelloSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
- base(endpointConfigurationName, remoteAddress) {
- }
-
- public DelayedHelloSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
- base(binding, remoteAddress) {
- }
-
- public event System.EventHandler<HelloWorldCompletedEventArgs> HelloWorldCompleted;
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- ClientWeb.ServiceReference1.HelloWorldResponse ClientWeb.ServiceReference1.DelayedHelloSoap.HelloWorld(ClientWeb.ServiceReference1.HelloWorldRequest request) {
- return base.Channel.HelloWorld(request);
- }
-
- public string HelloWorld(int delay) {
- ClientWeb.ServiceReference1.HelloWorldRequest inValue = new ClientWeb.ServiceReference1.HelloWorldRequest();
- inValue.Body = new ClientWeb.ServiceReference1.HelloWorldRequestBody();
- inValue.Body.delay = delay;
- ClientWeb.ServiceReference1.HelloWorldResponse retVal = ((ClientWeb.ServiceReference1.DelayedHelloSoap)(this)).HelloWorld(inValue);
- return retVal.Body.HelloWorldResult;
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- System.IAsyncResult ClientWeb.ServiceReference1.DelayedHelloSoap.BeginHelloWorld(ClientWeb.ServiceReference1.HelloWorldRequest request, System.AsyncCallback callback, object asyncState) {
- return base.Channel.BeginHelloWorld(request, callback, asyncState);
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- public System.IAsyncResult BeginHelloWorld(int delay, System.AsyncCallback callback, object asyncState) {
- ClientWeb.ServiceReference1.HelloWorldRequest inValue = new ClientWeb.ServiceReference1.HelloWorldRequest();
- inValue.Body = new ClientWeb.ServiceReference1.HelloWorldRequestBody();
- inValue.Body.delay = delay;
- return ((ClientWeb.ServiceReference1.DelayedHelloSoap)(this)).BeginHelloWorld(inValue, callback, asyncState);
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- ClientWeb.ServiceReference1.HelloWorldResponse ClientWeb.ServiceReference1.DelayedHelloSoap.EndHelloWorld(System.IAsyncResult result) {
- return base.Channel.EndHelloWorld(result);
- }
-
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
- public string EndHelloWorld(System.IAsyncResult result) {
- ClientWeb.ServiceReference1.HelloWorldResponse retVal = ((ClientWeb.ServiceReference1.DelayedHelloSoap)(this)).EndHelloWorld(result);
- return retVal.Body.HelloWorldResult;
- }
-
- private System.IAsyncResult OnBeginHelloWorld(object[] inValues, System.AsyncCallback callback, object asyncState) {
- int delay = ((int)(inValues[0]));
- return this.BeginHelloWorld(delay, 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(int delay) {
- this.HelloWorldAsync(delay, null);
- }
-
- public void HelloWorldAsync(int delay, 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, new object[] {
- delay}, this.onEndHelloWorldDelegate, this.onHelloWorldCompletedDelegate, userState);
- }
- }
- }