patryk_szwed

ConsoleApp1 Service1

Jun 3rd, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10.  
  11. namespace WcfService1
  12. {
  13. using System.Runtime.Serialization;
  14.  
  15.  
  16. [System.Diagnostics.DebuggerStepThroughAttribute()]
  17. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
  18. [System.Runtime.Serialization.DataContractAttribute(Name="CompositeType", Namespace="http://schemas.datacontract.org/2004/07/WcfService1")]
  19. public partial class CompositeType : object, System.Runtime.Serialization.IExtensibleDataObject
  20. {
  21.  
  22. private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
  23.  
  24. private bool BoolValueField;
  25.  
  26. private string StringValueField;
  27.  
  28. public System.Runtime.Serialization.ExtensionDataObject ExtensionData
  29. {
  30. get
  31. {
  32. return this.extensionDataField;
  33. }
  34. set
  35. {
  36. this.extensionDataField = value;
  37. }
  38. }
  39.  
  40. [System.Runtime.Serialization.DataMemberAttribute()]
  41. public bool BoolValue
  42. {
  43. get
  44. {
  45. return this.BoolValueField;
  46. }
  47. set
  48. {
  49. this.BoolValueField = value;
  50. }
  51. }
  52.  
  53. [System.Runtime.Serialization.DataMemberAttribute()]
  54. public string StringValue
  55. {
  56. get
  57. {
  58. return this.StringValueField;
  59. }
  60. set
  61. {
  62. this.StringValueField = value;
  63. }
  64. }
  65. }
  66. }
  67.  
  68.  
  69. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  70. [System.ServiceModel.ServiceContractAttribute(ConfigurationName="IService1")]
  71. public interface IService1
  72. {
  73.  
  74. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetData", ReplyAction="http://tempuri.org/IService1/GetDataResponse")]
  75. string GetData(int value);
  76.  
  77. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetData", ReplyAction="http://tempuri.org/IService1/GetDataResponse")]
  78. System.Threading.Tasks.Task<string> GetDataAsync(int value);
  79.  
  80. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/Factorial", ReplyAction="http://tempuri.org/IService1/FactorialResponse")]
  81. int Factorial(int value);
  82.  
  83. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/Factorial", ReplyAction="http://tempuri.org/IService1/FactorialResponse")]
  84. System.Threading.Tasks.Task<int> FactorialAsync(int value);
  85.  
  86. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetDataUsingDataContract", ReplyAction="http://tempuri.org/IService1/GetDataUsingDataContractResponse")]
  87. WcfService1.CompositeType GetDataUsingDataContract(WcfService1.CompositeType composite);
  88.  
  89. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetDataUsingDataContract", ReplyAction="http://tempuri.org/IService1/GetDataUsingDataContractResponse")]
  90. System.Threading.Tasks.Task<WcfService1.CompositeType> GetDataUsingDataContractAsync(WcfService1.CompositeType composite);
  91. }
  92.  
  93. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  94. public interface IService1Channel : IService1, System.ServiceModel.IClientChannel
  95. {
  96. }
  97.  
  98. [System.Diagnostics.DebuggerStepThroughAttribute()]
  99. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  100. public partial class Service1Client : System.ServiceModel.ClientBase<IService1>, IService1
  101. {
  102.  
  103. public Service1Client()
  104. {
  105. }
  106.  
  107. public Service1Client(string endpointConfigurationName) :
  108. base(endpointConfigurationName)
  109. {
  110. }
  111.  
  112. public Service1Client(string endpointConfigurationName, string remoteAddress) :
  113. base(endpointConfigurationName, remoteAddress)
  114. {
  115. }
  116.  
  117. public Service1Client(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  118. base(endpointConfigurationName, remoteAddress)
  119. {
  120. }
  121.  
  122. public Service1Client(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  123. base(binding, remoteAddress)
  124. {
  125. }
  126.  
  127. public string GetData(int value)
  128. {
  129. return base.Channel.GetData(value);
  130. }
  131.  
  132. public System.Threading.Tasks.Task<string> GetDataAsync(int value)
  133. {
  134. return base.Channel.GetDataAsync(value);
  135. }
  136.  
  137. public int Factorial(int value)
  138. {
  139. return base.Channel.Factorial(value);
  140. }
  141.  
  142. public System.Threading.Tasks.Task<int> FactorialAsync(int value)
  143. {
  144. return base.Channel.FactorialAsync(value);
  145. }
  146.  
  147. public WcfService1.CompositeType GetDataUsingDataContract(WcfService1.CompositeType composite)
  148. {
  149. return base.Channel.GetDataUsingDataContract(composite);
  150. }
  151.  
  152. public System.Threading.Tasks.Task<WcfService1.CompositeType> GetDataUsingDataContractAsync(WcfService1.CompositeType composite)
  153. {
  154. return base.Channel.GetDataUsingDataContractAsync(composite);
  155. }
  156. }
Add Comment
Please, Sign In to add comment