//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.17929 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ namespace RealmClient.Proxy { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="Proxy.Calculator")] public interface Calculator { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Calculator/Add", ReplyAction="http://tempuri.org/Calculator/AddResponse")] double Add(double x, double y); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/Calculator/Add", ReplyAction="http://tempuri.org/Calculator/AddResponse")] System.Threading.Tasks.Task AddAsync(double x, double y); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public interface CalculatorChannel : RealmClient.Proxy.Calculator, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class CalculatorClient : System.ServiceModel.ClientBase, RealmClient.Proxy.Calculator { public CalculatorClient() { } public CalculatorClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public CalculatorClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public CalculatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public CalculatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public double Add(double x, double y) { return base.Channel.Add(x, y); } public System.Threading.Tasks.Task AddAsync(double x, double y) { return base.Channel.AddAsync(x, y); } } }