--- dao/DaoMqPump2/DaoMqGUI/Service References/ServiceReference1/Reference.cs 2013/07/08 14:22:33 1999 +++ dao/DaoMqPump2/DaoMqGUI/Service References/ServiceReference1/Reference.cs 2013/07/08 14:23:01 2000 @@ -9,8 +9,151 @@ //------------------------------------------------------------------------------ namespace DaoMqGUI.ServiceReference1 { + 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="StatusData", Namespace="http://schemas.datacontract.org/2004/07/DaoMqPump2")] + [System.SerializableAttribute()] + public partial class StatusData : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { + + [System.NonSerializedAttribute()] + private System.Runtime.Serialization.ExtensionDataObject extensionDataField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private int counterField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string lastErrorMessageField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string lastErrorTimeField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string lastOkTimeField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private string lastTransferTimeField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private bool lastrunOkField; + + [System.Runtime.Serialization.OptionalFieldAttribute()] + private bool transportEnabledField; + + [global::System.ComponentModel.BrowsableAttribute(false)] + public System.Runtime.Serialization.ExtensionDataObject ExtensionData { + get { + return this.extensionDataField; + } + set { + this.extensionDataField = value; + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public int counter { + get { + return this.counterField; + } + set { + if ((this.counterField.Equals(value) != true)) { + this.counterField = value; + this.RaisePropertyChanged("counter"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string lastErrorMessage { + get { + return this.lastErrorMessageField; + } + set { + if ((object.ReferenceEquals(this.lastErrorMessageField, value) != true)) { + this.lastErrorMessageField = value; + this.RaisePropertyChanged("lastErrorMessage"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string lastErrorTime { + get { + return this.lastErrorTimeField; + } + set { + if ((object.ReferenceEquals(this.lastErrorTimeField, value) != true)) { + this.lastErrorTimeField = value; + this.RaisePropertyChanged("lastErrorTime"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string lastOkTime { + get { + return this.lastOkTimeField; + } + set { + if ((object.ReferenceEquals(this.lastOkTimeField, value) != true)) { + this.lastOkTimeField = value; + this.RaisePropertyChanged("lastOkTime"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public string lastTransferTime { + get { + return this.lastTransferTimeField; + } + set { + if ((object.ReferenceEquals(this.lastTransferTimeField, value) != true)) { + this.lastTransferTimeField = value; + this.RaisePropertyChanged("lastTransferTime"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool lastrunOk { + get { + return this.lastrunOkField; + } + set { + if ((this.lastrunOkField.Equals(value) != true)) { + this.lastrunOkField = value; + this.RaisePropertyChanged("lastrunOk"); + } + } + } + + [System.Runtime.Serialization.DataMemberAttribute()] + public bool transportEnabled { + get { + return this.transportEnabledField; + } + set { + if ((this.transportEnabledField.Equals(value) != true)) { + this.transportEnabledField = value; + this.RaisePropertyChanged("transportEnabled"); + } + } + } + + 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(Namespace="http://Microsoft.ServiceModel.Samples", ConfigurationName="ServiceReference1.IRemoteControl")] public interface IRemoteControl { @@ -18,32 +161,12 @@ [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransports", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportsResponse")] string[] GetTransports(); - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportEnabled", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportEnabledResponse")] - bool GetTransportEnabled(string transport); + [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportStatus", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportStatusResponse")] + DaoMqGUI.ServiceReference1.StatusData GetTransportStatus(string transport); [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/SetTransportEnabled", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/SetTransportEnabledResponse")] void SetTransportEnabled(string transport, bool enabled); - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastrunOk", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastrunOkRespons" + - "e")] - bool GetTransportLastrunOk(string transport); - - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastErrorMessage" + - "", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastErrorMessage" + - "Response")] - string GetTransportLastErrorMessage(string transport); - - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastOkTime", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastOkTimeRespon" + - "se")] - string GetTransportLastOkTime(string transport); - - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastErrorTime", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLastErrorTimeRes" + - "ponse")] - string GetTransportLastErrorTime(string transport); - - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportCounter", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportCounterResponse")] - int GetTransportCounter(string transport); - [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLog", ReplyAction="http://Microsoft.ServiceModel.Samples/IRemoteControl/GetTransportLogResponse")] string[] GetTransportLog(string transport); @@ -99,34 +222,14 @@ return base.Channel.GetTransports(); } - public bool GetTransportEnabled(string transport) { - return base.Channel.GetTransportEnabled(transport); + public DaoMqGUI.ServiceReference1.StatusData GetTransportStatus(string transport) { + return base.Channel.GetTransportStatus(transport); } public void SetTransportEnabled(string transport, bool enabled) { base.Channel.SetTransportEnabled(transport, enabled); } - public bool GetTransportLastrunOk(string transport) { - return base.Channel.GetTransportLastrunOk(transport); - } - - public string GetTransportLastErrorMessage(string transport) { - return base.Channel.GetTransportLastErrorMessage(transport); - } - - public string GetTransportLastOkTime(string transport) { - return base.Channel.GetTransportLastOkTime(transport); - } - - public string GetTransportLastErrorTime(string transport) { - return base.Channel.GetTransportLastErrorTime(transport); - } - - public int GetTransportCounter(string transport) { - return base.Channel.GetTransportCounter(transport); - } - public string[] GetTransportLog(string transport) { return base.Channel.GetTransportLog(transport); }