Reference.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本:4.0.30319.17929
  5. //
  6. // 对此文件的更改可能会导致不正确的行为,并且如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. namespace RealmClient.Proxy {
  11. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  12. [System.ServiceModel.ServiceContractAttribute(ConfigurationName="Proxy.Calculator")]
  13. public interface Calculator {
  14. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Calculator/Add", ReplyAction="http://tempuri.org/Calculator/AddResponse")]
  15. double Add(double x, double y);
  16. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Calculator/Add", ReplyAction="http://tempuri.org/Calculator/AddResponse")]
  17. System.Threading.Tasks.Task<double> AddAsync(double x, double y);
  18. }
  19. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  20. public interface CalculatorChannel : RealmClient.Proxy.Calculator, System.ServiceModel.IClientChannel {
  21. }
  22. [System.Diagnostics.DebuggerStepThroughAttribute()]
  23. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  24. public partial class CalculatorClient : System.ServiceModel.ClientBase<RealmClient.Proxy.Calculator>, RealmClient.Proxy.Calculator {
  25. public CalculatorClient() {
  26. }
  27. public CalculatorClient(string endpointConfigurationName) :
  28. base(endpointConfigurationName) {
  29. }
  30. public CalculatorClient(string endpointConfigurationName, string remoteAddress) :
  31. base(endpointConfigurationName, remoteAddress) {
  32. }
  33. public CalculatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  34. base(endpointConfigurationName, remoteAddress) {
  35. }
  36. public CalculatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  37. base(binding, remoteAddress) {
  38. }
  39. public double Add(double x, double y) {
  40. return base.Channel.Add(x, y);
  41. }
  42. public System.Threading.Tasks.Task<double> AddAsync(double x, double y) {
  43. return base.Channel.AddAsync(x, y);
  44. }
  45. }
  46. }