//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.237
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace OpcClientFormTest.PLCServiceTest {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="PLCServiceTest.IPLCServiceTest", CallbackContract=typeof(OpcClientFormTest.PLCServiceTest.IPLCServiceTestCallback), SessionMode=System.ServiceModel.SessionMode.Required)]
    public interface IPLCServiceTest {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPLCServiceTest/Register", ReplyAction="http://tempuri.org/IPLCServiceTest/RegisterResponse")]
        int Register(string machineNo);
        
        [System.ServiceModel.OperationContractAttribute(IsTerminating=true, IsInitiating=false, Action="http://tempuri.org/IPLCServiceTest/Logout", ReplyAction="http://tempuri.org/IPLCServiceTest/LogoutResponse")]
        int Logout(string machineNo);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IPLCServiceTestCallback {
        
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IPLCServiceTest/ReturnProductCode")]
        void ReturnProductCode(string name);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IPLCServiceTestChannel : OpcClientFormTest.PLCServiceTest.IPLCServiceTest, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class PLCServiceTestClient : System.ServiceModel.DuplexClientBase<OpcClientFormTest.PLCServiceTest.IPLCServiceTest>, OpcClientFormTest.PLCServiceTest.IPLCServiceTest {
        
        public PLCServiceTestClient(System.ServiceModel.InstanceContext callbackInstance) : 
                base(callbackInstance) {
        }
        
        public PLCServiceTestClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName) : 
                base(callbackInstance, endpointConfigurationName) {
        }
        
        public PLCServiceTestClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress) : 
                base(callbackInstance, endpointConfigurationName, remoteAddress) {
        }
        
        public PLCServiceTestClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(callbackInstance, endpointConfigurationName, remoteAddress) {
        }
        
        public PLCServiceTestClient(System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(callbackInstance, binding, remoteAddress) {
        }
        
        public int Register(string machineNo) {
            return base.Channel.Register(machineNo);
        }
        
        public int Logout(string machineNo) {
            return base.Channel.Logout(machineNo);
        }
    }
}