diff --git a/IOB-UT-NEXT/BinaryFormatter.cs b/IOB-UT-NEXT/BinaryFormatter.cs
index a91b074e..0619bf95 100644
--- a/IOB-UT-NEXT/BinaryFormatter.cs
+++ b/IOB-UT-NEXT/BinaryFormatter.cs
@@ -6,20 +6,6 @@ namespace IOB_UT_NEXT
{
public class BinaryUtils : IFormatProvider, ICustomFormatter
{
- #region Private Methods
-
- private string HandleOtherFormats(string format, object arg)
- {
- if (arg is IFormattable)
- return ((IFormattable)arg).ToString(format, CultureInfo.CurrentCulture);
- else if (arg != null)
- return arg.ToString();
- else
- return String.Empty;
- }
-
- #endregion Private Methods
-
#region Public Methods
// Format number in binary (B), octal (O), or hexadecimal (H).
@@ -29,8 +15,7 @@ namespace IOB_UT_NEXT
int baseNumber;
// Handle null or empty format string, string with precision specifier.
string thisFmt = String.Empty;
- // Extract first character of format string (precision specifiers
- // are not supported).
+ // Extract first character of format string (precision specifiers are not supported).
if (!String.IsNullOrEmpty(format))
thisFmt = format.Length > 1 ? format.Substring(0, 1) : format;
@@ -140,5 +125,19 @@ namespace IOB_UT_NEXT
}
#endregion Public Methods
+
+ #region Private Methods
+
+ private string HandleOtherFormats(string format, object arg)
+ {
+ if (arg is IFormattable)
+ return ((IFormattable)arg).ToString(format, CultureInfo.CurrentCulture);
+ else if (arg != null)
+ return arg.ToString();
+ else
+ return String.Empty;
+ }
+
+ #endregion Private Methods
}
}
\ No newline at end of file
diff --git a/IOB-UT-NEXT/Enums.cs b/IOB-UT-NEXT/Enums.cs
index 8a07e576..63f0993c 100644
--- a/IOB-UT-NEXT/Enums.cs
+++ b/IOB-UT-NEXT/Enums.cs
@@ -1,6 +1,4 @@
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using System;
+using System;
namespace IOB_UT_NEXT
{
@@ -470,35 +468,6 @@ namespace IOB_UT_NEXT
WPS
}
-#if false
- ///
- /// Enumerazione tipi di semaforo
- ///
- public enum Semaforo
- {
- ///
- /// Stato non definito
- ///
- ND,
- ///
- /// Verde
- ///
- SV,
- ///
- /// Giallo
- ///
- SG,
- ///
- /// Rosso
- ///
- SR,
- ///
- /// Grigio/Spento
- ///
- SS
- }
-#endif
-
///
/// Enumerazione tipi di tipi di URL x invio
///
@@ -524,27 +493,4 @@ namespace IOB_UT_NEXT
///
ULog
}
-
-#if false
- ///
- /// Tipologia dato Raw Transfer (derivare da MapoSdk e togliere qui)
- ///
- /// serializzazione Native
- /// [JsonConverter(typeof(JsonStringEnumConverter))]
- /// serializzazione Newtonsoft json
- /// [JsonConverter(typeof(StringEnumConverter))]
- [JsonConverter(typeof(StringEnumConverter))]
- public enum rawTransfType
- {
- ND = 0,
- ///
- /// Icoel: Batch info
- ///
- IcoelBatch,
- ///
- /// Icoel: Variety + layout info relative
- ///
- IcoelVarInfo
- }
-#endif
}
\ No newline at end of file
diff --git a/IOB-UT-NEXT/Objects.cs b/IOB-UT-NEXT/Objects.cs
index 7ee9ae69..5b893604 100644
--- a/IOB-UT-NEXT/Objects.cs
+++ b/IOB-UT-NEXT/Objects.cs
@@ -117,70 +117,6 @@ namespace IOB_UT_NEXT
#endregion Public Methods
}
-#if false
- ///
- /// Classe di base per trasferimento informazioni di tipo RawTransfer
- /// FixMe Todo Fare !!!: elimnare usando SDK MAPO
- ///
- public class BaseRawTransf
- {
- #region Public Properties
-
- ///
- /// Data-Ora riferimento (x ordinamento fifo)
- ///
- public DateTime dataRif { get; set; } = DateTime.Now;
-
- ///
- /// Messaggio in modalità raw/stringa
- ///
- public object mesContent { get; set; } = "";
-
- ///
- /// Tipo di messaggio trasmesso
- ///
- public rawTransfType mesType { get; set; } = rawTransfType.ND;
-
- ///
- /// Costruttore senza parametri
- ///
- public BaseRawTransf()
- {
- this.dataRif = DateTime.Now;
- this.mesContent = "";
- this.mesType = rawTransfType.ND;
- }
-
- ///
- /// Costruttore oggetto
- ///
- ///
- ///
- ///
- public BaseRawTransf(DateTime dataRif, object mesContent, rawTransfType mesType)
- {
- this.dataRif = dataRif;
- this.mesContent = mesContent;
- this.mesType = mesType;
- }
-
- #endregion Public Properties
- }
-
- ///
- /// Array valori tipo BaseRawTransf inviati come JSon
- /// FixMe Todo Fare !!!: elimnare usando SDK MAPO
- ///
- public class rawTransfJsonPayload
- {
- #region Public Properties
-
- public List rawTransfData { get; set; }
-
- #endregion Public Properties
- }
-#endif
-
///
/// Cache a tempo valori INT
///
@@ -343,6 +279,8 @@ namespace IOB_UT_NEXT
#endregion Public Properties
+ #region Public Methods
+
///
/// Override metodo di equality
///
@@ -371,7 +309,7 @@ namespace IOB_UT_NEXT
return false;
if (queueRawTransfLen != item.queueRawTransfLen)
return false;
- if (queueUlLen!= item.queueUlLen)
+ if (queueUlLen != item.queueUlLen)
return false;
return true;
@@ -381,6 +319,8 @@ namespace IOB_UT_NEXT
{
return base.GetHashCode();
}
+
+ #endregion Public Methods
}
///
diff --git a/IOB-UT-NEXT/baseUtils.cs b/IOB-UT-NEXT/baseUtils.cs
index 7f074349..1dc6a419 100644
--- a/IOB-UT-NEXT/baseUtils.cs
+++ b/IOB-UT-NEXT/baseUtils.cs
@@ -1,4 +1,3 @@
-using MapoSDK;
using NLog;
using System;
using System.Collections;
@@ -49,35 +48,6 @@ namespace IOB_UT_NEXT
#endregion Public Fields
-#if false
- {
- get
- {
- return redisMan.servStatus.dtVetoPing;
- }
- set
- {
- var currData = redisMan.servStatus;
- currData.dtVetoPing = value;
- redisMan.servStatus = currData;
- }
- }
-#endif
-
- #region Protected Properties
-
- ///
- /// Oggetto WebClient BASE da riutilizzare
- ///
- protected static WebClientWT client { get; set; }
-
- ///
- /// Oggetto WebClient con PAYLOAD da riutilizzare
- ///
- protected static WebClientWT clientPayload { get; set; }
-
- #endregion Protected Properties
-
#region Public Properties
///
@@ -117,6 +87,7 @@ namespace IOB_UT_NEXT
{ }
return answ;
}
+
///
/// formatta un numero in forma binaria 0/1
///
@@ -409,7 +380,9 @@ namespace IOB_UT_NEXT
/// number will be formatted as a 32-character binary number in two's compliment.
///
/// self-explanatory
- /// if binary number contains fewer characters leading zeros are added
+ ///
+ /// if binary number contains fewer characters leading zeros are added
+ ///
/// string as described above
public static string IntToBinStr(int theNumber, int minimumDigits)
{
@@ -420,7 +393,9 @@ namespace IOB_UT_NEXT
/// verifica se un dato bit sia alzato (come flag di strobe)
///
/// valore da testare
- /// valore cercato, può essere un singolo valore o un insieme in modalità AND
+ ///
+ /// valore cercato, può essere un singolo valore o un insieme in modalità AND
+ ///
///
public static bool IsSetAll(StFlag32 value, StFlag32 flag)
{
@@ -431,7 +406,9 @@ namespace IOB_UT_NEXT
/// verifica se un dato bit sia alzato (come flag di strobe)
///
/// valore da testare
- /// valore cercato, può essere un singolo valore o un insieme in modalità OR
+ ///
+ /// valore cercato, può essere un singolo valore o un insieme in modalità OR
+ ///
///
public static bool IsSetAny(StFlag32 value, StFlag32 flag)
{
@@ -586,7 +563,8 @@ namespace IOB_UT_NEXT
}
///
- /// provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare a dim inferiori a _logMaxMb
+ /// provvede a verificare la dim della cartella dei log e cancella i + vecchi fino a restare
+ /// a dim inferiori a _logMaxMb
///
public static void shrinkDir(string dirPath)
{
@@ -616,7 +594,8 @@ namespace IOB_UT_NEXT
// inizio con eliminare file + vecchi della data indicata...
int maxLogDays = CRI("maxLogDays");
fileMover.obj.deleteOlderThan(maxLogDays);
- // ora controllo SE sia superata la dim max della directory --> in tal caso cancello dal + vecchio...
+ // ora controllo SE sia superata la dim max della directory --> in tal caso cancello dal
+ // + vecchio...
dirSizeMb = fileMover.obj.totalMb();
int maxLogDirSize = CRI("maxLogDirSize");
int maxTry = 100;
@@ -723,6 +702,20 @@ namespace IOB_UT_NEXT
}
#endregion Public Methods
+
+ #region Protected Properties
+
+ ///
+ /// Oggetto WebClient BASE da riutilizzare
+ ///
+ protected static WebClientWT client { get; set; }
+
+ ///
+ /// Oggetto WebClient con PAYLOAD da riutilizzare
+ ///
+ protected static WebClientWT clientPayload { get; set; }
+
+ #endregion Protected Properties
}
///