You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
328 lines
13 KiB
328 lines
13 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 此代码由工具生成。
|
|
// 运行时版本:4.0.30319.42000
|
|
//
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
// 重新生成代码,这些更改将会丢失。
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace QM.Exchange.Adapters.OPCService {
|
|
using System.Runtime.Serialization;
|
|
using System;
|
|
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="OpcDeviceData", Namespace="http://schemas.datacontract.org/2004/07/OPCAdapter.Core")]
|
|
[System.SerializableAttribute()]
|
|
public partial class OpcDeviceData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string channelNameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string deviceNameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private QM.Exchange.Adapters.OPCService.DeviceParameter[] tagsField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string channelName {
|
|
get {
|
|
return this.channelNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.channelNameField, value) != true)) {
|
|
this.channelNameField = value;
|
|
this.RaisePropertyChanged("channelName");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string deviceName {
|
|
get {
|
|
return this.deviceNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.deviceNameField, value) != true)) {
|
|
this.deviceNameField = value;
|
|
this.RaisePropertyChanged("deviceName");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public QM.Exchange.Adapters.OPCService.DeviceParameter[] tags {
|
|
get {
|
|
return this.tagsField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.tagsField, value) != true)) {
|
|
this.tagsField = value;
|
|
this.RaisePropertyChanged("tags");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="DeviceParameter", Namespace="http://schemas.datacontract.org/2004/07/OPCAdapter.Core")]
|
|
[System.SerializableAttribute()]
|
|
[System.Runtime.Serialization.KnownTypeAttribute(typeof(QM.Exchange.Adapters.OPCService.OpcDeviceData))]
|
|
[System.Runtime.Serialization.KnownTypeAttribute(typeof(QM.Exchange.Adapters.OPCService.DeviceParameter[]))]
|
|
[System.Runtime.Serialization.KnownTypeAttribute(typeof(QM.Exchange.Adapters.OPCService.OPCResult))]
|
|
public partial class DeviceParameter : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string nameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private object valueField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string name {
|
|
get {
|
|
return this.nameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.nameField, value) != true)) {
|
|
this.nameField = value;
|
|
this.RaisePropertyChanged("name");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public object value {
|
|
get {
|
|
return this.valueField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.valueField, value) != true)) {
|
|
this.valueField = value;
|
|
this.RaisePropertyChanged("value");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
|
|
[System.Runtime.Serialization.DataContractAttribute(Name="OPCResult", Namespace="http://schemas.datacontract.org/2004/07/OPCAdapter.Core")]
|
|
[System.SerializableAttribute()]
|
|
public partial class OPCResult : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
|
|
|
|
[System.NonSerializedAttribute()]
|
|
private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string DataPushModeField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string channelNameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string deviceNameField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private string errorField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private bool isSuccessField;
|
|
|
|
[System.Runtime.Serialization.OptionalFieldAttribute()]
|
|
private QM.Exchange.Adapters.OPCService.DeviceParameter[] tagsField;
|
|
|
|
[global::System.ComponentModel.BrowsableAttribute(false)]
|
|
public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
|
|
get {
|
|
return this.extensionDataField;
|
|
}
|
|
set {
|
|
this.extensionDataField = value;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string DataPushMode {
|
|
get {
|
|
return this.DataPushModeField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.DataPushModeField, value) != true)) {
|
|
this.DataPushModeField = value;
|
|
this.RaisePropertyChanged("DataPushMode");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string channelName {
|
|
get {
|
|
return this.channelNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.channelNameField, value) != true)) {
|
|
this.channelNameField = value;
|
|
this.RaisePropertyChanged("channelName");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string deviceName {
|
|
get {
|
|
return this.deviceNameField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.deviceNameField, value) != true)) {
|
|
this.deviceNameField = value;
|
|
this.RaisePropertyChanged("deviceName");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public string error {
|
|
get {
|
|
return this.errorField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.errorField, value) != true)) {
|
|
this.errorField = value;
|
|
this.RaisePropertyChanged("error");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public bool isSuccess {
|
|
get {
|
|
return this.isSuccessField;
|
|
}
|
|
set {
|
|
if ((this.isSuccessField.Equals(value) != true)) {
|
|
this.isSuccessField = value;
|
|
this.RaisePropertyChanged("isSuccess");
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.Runtime.Serialization.DataMemberAttribute()]
|
|
public QM.Exchange.Adapters.OPCService.DeviceParameter[] tags {
|
|
get {
|
|
return this.tagsField;
|
|
}
|
|
set {
|
|
if ((object.ReferenceEquals(this.tagsField, value) != true)) {
|
|
this.tagsField = value;
|
|
this.RaisePropertyChanged("tags");
|
|
}
|
|
}
|
|
}
|
|
|
|
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void RaisePropertyChanged(string propertyName) {
|
|
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
|
|
if ((propertyChanged != null)) {
|
|
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="OPCService.IMainService")]
|
|
public interface IMainService {
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IMainService/ReadData", ReplyAction="http://tempuri.org/IMainService/ReadDataResponse")]
|
|
QM.Exchange.Adapters.OPCService.OPCResult ReadData(QM.Exchange.Adapters.OPCService.OpcDeviceData odData);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IMainService/WriteData", ReplyAction="http://tempuri.org/IMainService/WriteDataResponse")]
|
|
QM.Exchange.Adapters.OPCService.OPCResult WriteData(QM.Exchange.Adapters.OPCService.OpcDeviceData odData);
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
public interface IMainServiceChannel : QM.Exchange.Adapters.OPCService.IMainService, System.ServiceModel.IClientChannel {
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
|
public partial class MainServiceClient : System.ServiceModel.ClientBase<QM.Exchange.Adapters.OPCService.IMainService>, QM.Exchange.Adapters.OPCService.IMainService {
|
|
|
|
public MainServiceClient() {
|
|
}
|
|
|
|
public MainServiceClient(string endpointConfigurationName) :
|
|
base(endpointConfigurationName) {
|
|
}
|
|
|
|
public MainServiceClient(string endpointConfigurationName, string remoteAddress) :
|
|
base(endpointConfigurationName, remoteAddress) {
|
|
}
|
|
|
|
public MainServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(endpointConfigurationName, remoteAddress) {
|
|
}
|
|
|
|
public MainServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(binding, remoteAddress) {
|
|
}
|
|
|
|
public QM.Exchange.Adapters.OPCService.OPCResult ReadData(QM.Exchange.Adapters.OPCService.OpcDeviceData odData) {
|
|
return base.Channel.ReadData(odData);
|
|
}
|
|
|
|
public QM.Exchange.Adapters.OPCService.OPCResult WriteData(QM.Exchange.Adapters.OPCService.OpcDeviceData odData) {
|
|
return base.Channel.WriteData(odData);
|
|
}
|
|
}
|
|
}
|
|
|