1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace iWareCcTest.OpcWcfService {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="OpcWcfService.IOpcWcfService")]
    public interface IOpcWcfService {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/ReadValue", ReplyAction="http://tempuri.org/IOpcWcfService/ReadValueResponse")]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(string[]))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(object[]))]
        object ReadValue(string dbName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/ReadValue", ReplyAction="http://tempuri.org/IOpcWcfService/ReadValueResponse")]
        System.Threading.Tasks.Task<object> ReadValueAsync(string dbName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/ReadValues", ReplyAction="http://tempuri.org/IOpcWcfService/ReadValuesResponse")]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(string[]))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(object[]))]
        object[] ReadValues(string[] dbNames);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/ReadValues", ReplyAction="http://tempuri.org/IOpcWcfService/ReadValuesResponse")]
        System.Threading.Tasks.Task<object[]> ReadValuesAsync(string[] dbNames);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/WriteValue", ReplyAction="http://tempuri.org/IOpcWcfService/WriteValueResponse")]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(string[]))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(object[]))]
        bool WriteValue(string dbName, object value);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/WriteValue", ReplyAction="http://tempuri.org/IOpcWcfService/WriteValueResponse")]
        System.Threading.Tasks.Task<bool> WriteValueAsync(string dbName, object value);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/WriteValues", ReplyAction="http://tempuri.org/IOpcWcfService/WriteValuesResponse")]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(string[]))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(object[]))]
        bool WriteValues(string[] dbNames, object[] values);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOpcWcfService/WriteValues", ReplyAction="http://tempuri.org/IOpcWcfService/WriteValuesResponse")]
        System.Threading.Tasks.Task<bool> WriteValuesAsync(string[] dbNames, object[] values);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IOpcWcfServiceChannel : iWareCcTest.OpcWcfService.IOpcWcfService, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class OpcWcfServiceClient : System.ServiceModel.ClientBase<iWareCcTest.OpcWcfService.IOpcWcfService>, iWareCcTest.OpcWcfService.IOpcWcfService {
        
        public OpcWcfServiceClient() {
        }
        
        public OpcWcfServiceClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public OpcWcfServiceClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public OpcWcfServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public OpcWcfServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public object ReadValue(string dbName) {
            return base.Channel.ReadValue(dbName);
        }
        
        public System.Threading.Tasks.Task<object> ReadValueAsync(string dbName) {
            return base.Channel.ReadValueAsync(dbName);
        }
        
        public object[] ReadValues(string[] dbNames) {
            return base.Channel.ReadValues(dbNames);
        }
        
        public System.Threading.Tasks.Task<object[]> ReadValuesAsync(string[] dbNames) {
            return base.Channel.ReadValuesAsync(dbNames);
        }
        
        public bool WriteValue(string dbName, object value) {
            return base.Channel.WriteValue(dbName, value);
        }
        
        public System.Threading.Tasks.Task<bool> WriteValueAsync(string dbName, object value) {
            return base.Channel.WriteValueAsync(dbName, value);
        }
        
        public bool WriteValues(string[] dbNames, object[] values) {
            return base.Channel.WriteValues(dbNames, values);
        }
        
        public System.Threading.Tasks.Task<bool> WriteValuesAsync(string[] dbNames, object[] values) {
            return base.Channel.WriteValuesAsync(dbNames, values);
        }
    }
}