1 //------------------------------------------------------------------------------
3 // This code was generated by a tool.
4 // Runtime Version:2.0.50727.42
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
9 //------------------------------------------------------------------------------
12 namespace Microsoft
.ServiceModel
.Samples
16 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
17 [System
.ServiceModel
.ServiceContractAttribute(Namespace
="http://Microsoft.ServiceModel.Samples")]
18 public interface ICalculator
21 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/ICalculator/Add", ReplyAction
="http://Microsoft.ServiceModel.Samples/ICalculator/AddResponse")]
22 double Add(double n1
, double n2
);
24 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/ICalculator/Subtract", ReplyAction
="http://Microsoft.ServiceModel.Samples/ICalculator/SubtractResponse")]
25 double Subtract(double n1
, double n2
);
27 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/ICalculator/Multiply", ReplyAction
="http://Microsoft.ServiceModel.Samples/ICalculator/MultiplyResponse")]
28 double Multiply(double n1
, double n2
);
30 [System
.ServiceModel
.OperationContractAttribute(Action
="http://Microsoft.ServiceModel.Samples/ICalculator/Divide", ReplyAction
="http://Microsoft.ServiceModel.Samples/ICalculator/DivideResponse")]
31 double Divide(double n1
, double n2
);
34 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
35 public interface ICalculatorChannel
: ICalculator
, System
.ServiceModel
.IClientChannel
39 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
40 public partial class CalculatorProxy
: System
.ServiceModel
.ClientBase
<ICalculator
>, ICalculator
43 public CalculatorProxy()
47 public CalculatorProxy(string endpointConfigurationName
) :
48 base(endpointConfigurationName
)
52 public CalculatorProxy(string endpointConfigurationName
, string remoteAddress
) :
53 base(endpointConfigurationName
, remoteAddress
)
57 public CalculatorProxy(string endpointConfigurationName
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
58 base(endpointConfigurationName
, remoteAddress
)
62 public CalculatorProxy(System
.ServiceModel
.Channels
.Binding binding
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
63 base(binding
, remoteAddress
)
67 public double Add(double n1
, double n2
)
69 return base.Channel
.Add(n1
, n2
);
72 public double Subtract(double n1
, double n2
)
74 return base.Channel
.Subtract(n1
, n2
);
77 public double Multiply(double n1
, double n2
)
79 return base.Channel
.Multiply(n1
, n2
);
82 public double Divide(double n1
, double n2
)
84 return base.Channel
.Divide(n1
, n2
);