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", ConfigurationName
="Microsoft.ServiceModel.Samples.ICalculator")]
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
: Microsoft
.ServiceModel
.Samples
.ICalculator
, System
.ServiceModel
.IClientChannel
39 [System
.Diagnostics
.DebuggerStepThroughAttribute()]
40 [System
.CodeDom
.Compiler
.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
41 public partial class CalculatorClient
: System
.ServiceModel
.ClientBase
<Microsoft
.ServiceModel
.Samples
.ICalculator
>, Microsoft
.ServiceModel
.Samples
.ICalculator
44 public CalculatorClient()
48 public CalculatorClient(string endpointConfigurationName
) :
49 base(endpointConfigurationName
)
53 public CalculatorClient(string endpointConfigurationName
, string remoteAddress
) :
54 base(endpointConfigurationName
, remoteAddress
)
58 public CalculatorClient(string endpointConfigurationName
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
59 base(endpointConfigurationName
, remoteAddress
)
63 public CalculatorClient(System
.ServiceModel
.Channels
.Binding binding
, System
.ServiceModel
.EndpointAddress remoteAddress
) :
64 base(binding
, remoteAddress
)
68 public double Add(double n1
, double n2
)
70 return base.Channel
.Add(n1
, n2
);
73 public double Subtract(double n1
, double n2
)
75 return base.Channel
.Subtract(n1
, n2
);
78 public double Multiply(double n1
, double n2
)
80 return base.Channel
.Multiply(n1
, n2
);
83 public double Divide(double n1
, double n2
)
85 return base.Channel
.Divide(n1
, n2
);