Clean
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Modbus.Net
|
||||
{
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Modbus.Net
|
||||
{
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Modbus.Net
|
||||
namespace Modbus.Net
|
||||
{
|
||||
#if NET462
|
||||
#pragma warning disable 1591
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using Quartz;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Quartz.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Modbus.Net;
|
||||
using Modbus.Net.Modbus;
|
||||
using System.Diagnostics;
|
||||
using AddressUnit = Modbus.Net.AddressUnit<string, int, int>;
|
||||
using MachineJobSchedulerCreator = Modbus.Net.MachineJobSchedulerCreator<Modbus.Net.IMachineMethodDatas, string, double>;
|
||||
using ModbusMachine = Modbus.Net.Modbus.ModbusMachine<string, string>;
|
||||
using AddressUnit = Modbus.Net.AddressUnit<string, int, int>;
|
||||
|
||||
namespace AnyType.Controllers
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Quartz.Logging;
|
||||
using System.Configuration;
|
||||
|
||||
namespace MachineJob
|
||||
{
|
||||
|
||||
@@ -24,10 +24,9 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Ae;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
using Technosoftware.OpcRcw.Ae;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
#endregion
|
||||
|
||||
#pragma warning disable 0618
|
||||
|
||||
@@ -23,11 +23,9 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Ae;
|
||||
using Technosoftware.OpcRcw.Ae;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
using Technosoftware.OpcRcw.Ae;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -333,7 +331,9 @@ namespace Technosoftware.DaAeHdaClient.Com.Ae
|
||||
// build results.
|
||||
var filters = new TsCAeSubscriptionFilters
|
||||
{
|
||||
EventTypes = pdwEventType, LowSeverity = pdwLowSeverity, HighSeverity = pdwHighSeverity
|
||||
EventTypes = pdwEventType,
|
||||
LowSeverity = pdwLowSeverity,
|
||||
HighSeverity = pdwHighSeverity
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -22,12 +22,11 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Net;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -23,9 +23,8 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Reflection;
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -22,16 +22,13 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
using System.Threading;
|
||||
using Technosoftware.DaAeHdaClient.Com.Utilities;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -23,14 +23,12 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Com.Da;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
using Technosoftware.DaAeHdaClient.Com.Utilities;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -23,13 +23,10 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Com.Da;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
using Technosoftware.DaAeHdaClient.Com.Utilities;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.OpcRcw.Da;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Com.Da20
|
||||
|
||||
@@ -22,14 +22,9 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -23,10 +23,9 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Hda;
|
||||
using Technosoftware.OpcRcw.Hda;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
using Technosoftware.OpcRcw.Hda;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Com.Hda
|
||||
|
||||
@@ -22,12 +22,11 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Com.Utilities;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
#endregion
|
||||
|
||||
#pragma warning disable 0618
|
||||
@@ -859,7 +858,8 @@ namespace Technosoftware.DaAeHdaClient.Com
|
||||
/// <summary>
|
||||
/// This flag suppresses the conversion to local time done during marshalling.
|
||||
/// </summary>
|
||||
public static bool PreserveUtc {
|
||||
public static bool PreserveUtc
|
||||
{
|
||||
get { lock (typeof(Interop)) { return DaAeHdaClient.ApplicationInstance.TimeAsUtc; } }
|
||||
set { lock (typeof(Interop)) { DaAeHdaClient.ApplicationInstance.TimeAsUtc = value; } }
|
||||
}
|
||||
|
||||
@@ -23,12 +23,11 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Net;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -22,14 +22,12 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
using Technosoftware.DaAeHdaClient.Ae;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
using Technosoftware.DaAeHdaClient.Hda;
|
||||
using Technosoftware.OpcRcw.Comn;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Com
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
|
||||
@@ -22,10 +22,9 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
#pragma warning disable 618
|
||||
#endregion
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#region Using Directives
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.Serialization;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#endregion Copyright (c) 2011-2023 Technosoftware GmbH. All rights reserved
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -23,9 +23,8 @@
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Xml;
|
||||
using System.IO;
|
||||
|
||||
using System.Xml;
|
||||
using Technosoftware.DaAeHdaClient.Da;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Da
|
||||
|
||||
@@ -55,13 +55,13 @@ namespace Technosoftware.DaAeHdaClient.Da
|
||||
/// <summary>A device failure has been detected.</summary>
|
||||
BadDeviceFailure = 0x0000000c,
|
||||
/// <summary>
|
||||
/// A sensor failure had been detected (the ’Limits’ field can provide additional
|
||||
/// A sensor failure had been detected (the ’Limits?field can provide additional
|
||||
/// diagnostic information in some situations).
|
||||
/// </summary>
|
||||
BadSensorFailure = 0x00000010,
|
||||
/// <summary>
|
||||
/// Communications have failed. However, the last known value is available. Note that
|
||||
/// the ‘age’ of the value may be determined from the time stamp in the item state.
|
||||
/// the ‘age?of the value may be determined from the time stamp in the item state.
|
||||
/// </summary>
|
||||
BadLastKnownValue = 0x00000014,
|
||||
/// <summary>Communications have failed. There is no last known value is available.</summary>
|
||||
@@ -83,16 +83,16 @@ namespace Technosoftware.DaAeHdaClient.Da
|
||||
Uncertain = 0x00000040,
|
||||
/// <summary>
|
||||
/// Whatever was writing this value has stopped doing so. The returned value should
|
||||
/// be regarded as ‘stale’. Note that this differs from a BAD value with sub-status
|
||||
/// be regarded as ‘stale? Note that this differs from a BAD value with sub-status
|
||||
/// badLastKnownValue (Last Known Value). That status is associated specifically with a
|
||||
/// detectable communications error on a ‘fetched’ value. This error is associated with the
|
||||
/// failure of some external source to ‘put’ something into the value within an acceptable
|
||||
/// period of time. Note that the ‘age’ of the value can be determined from the time stamp
|
||||
/// detectable communications error on a ‘fetched?value. This error is associated with the
|
||||
/// failure of some external source to ‘put?something into the value within an acceptable
|
||||
/// period of time. Note that the ‘age?of the value can be determined from the time stamp
|
||||
/// in the item state.
|
||||
/// </summary>
|
||||
UncertainLastUsableValue = 0x00000044,
|
||||
/// <summary>
|
||||
/// Either the value has ‘pegged’ at one of the sensor limits (in which case the
|
||||
/// Either the value has ‘pegged?at one of the sensor limits (in which case the
|
||||
/// limit field should be set to low or high) or the sensor is otherwise known to be out of
|
||||
/// calibration via some form of internal diagnostics (in which case the limit field should
|
||||
/// be none).
|
||||
@@ -100,7 +100,7 @@ namespace Technosoftware.DaAeHdaClient.Da
|
||||
UncertainSensorNotAccurate = 0x00000050,
|
||||
/// <summary>
|
||||
/// The returned value is outside the limits defined for this parameter. Note that in
|
||||
/// this case (per the Field-bus Specification) the ‘Limits’ field indicates which limit has
|
||||
/// this case (per the Field-bus Specification) the ‘Limits?field indicates which limit has
|
||||
/// been exceeded but does NOT necessarily imply that the value cannot move farther out of
|
||||
/// range.
|
||||
/// </summary>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Da
|
||||
|
||||
@@ -210,8 +210,10 @@ namespace Technosoftware.DaAeHdaClient.Da
|
||||
/// <summary>
|
||||
/// The items belonging to the subscription.
|
||||
/// </summary>
|
||||
public TsCDaItem[] Items {
|
||||
get {
|
||||
public TsCDaItem[] Items
|
||||
{
|
||||
get
|
||||
{
|
||||
if (daItems_ == null) return new TsCDaItem[0];
|
||||
var items = new TsCDaItem[daItems_.Length];
|
||||
for (var ii = 0; ii < daItems_.Length; ii++) items[ii] = (TsCDaItem)daItems_[ii].Clone();
|
||||
@@ -562,7 +564,8 @@ namespace Technosoftware.DaAeHdaClient.Da
|
||||
/// <summary>
|
||||
/// An event to receive data change updates.
|
||||
/// </summary>
|
||||
public event TsCDaDataChangedEventHandler DataChangedEvent {
|
||||
public event TsCDaDataChangedEventHandler DataChangedEvent
|
||||
{
|
||||
add => Subscription.DataChangedEvent += value;
|
||||
remove => Subscription.DataChangedEvent -= value;
|
||||
}
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 618
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient.Hda
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Linq;
|
||||
using static System.String;
|
||||
using System.Diagnostics;
|
||||
using Technosoftware.DaAeHdaClient.Utilities;
|
||||
#endregion
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.Serialization;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
#endregion
|
||||
|
||||
namespace Technosoftware.DaAeHdaClient
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Globalization;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Globalization;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
/* Unmerged change from project 'Technosoftware.OpcRcw (net472)'
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#region Using Directives
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user