A set of C# utilitity methods.
- ExceptionHelpers
- public static string ConcatInnerExceptions(Exception e)
- Logger --> A threadsafe logger.
- public Logger(string path)
- public Logger(string applicationName, string filename, string subfolderName = null)
- public void SaveLogEntry(string message)
- public async Task SaveLogEntryAsync(string message)
- Extensions
- public static IEnumerable<IEnumerable> SplitIntoNChunks(this IEnumerable source, int numChunks)
- public static IEnumerable<IEnumerable> SplitIntoBatchesOfSize(this IEnumerable source, int batchSize)
- public static IEnumerable Shuffle(this IEnumerable source)
- public static IEnumerable Shuffle(this IEnumerable source, Random rng)
- RandomNumbers
- public static IEnumerable GetRandomNumbers(int numValues, int maxVal, bool allowRepetition = false)
- MathConvenience
- public static double Max(params double[] values)
- public static double Min(params double[] values)
- ConnectivityHelpers
- public static async Task PingIp(string ip, Logging.Logger logger = null)
- public static bool PingHost(string _HostURI, int _PortNumber)