Added connection string check to cache start.

This commit is contained in:
2026-02-08 18:45:25 -08:00
parent 7121acb446
commit f0fac10c37

View File

@@ -102,6 +102,9 @@ namespace MontoyaTech.MySqlPlus
/// <param name="connectionStr"></param>
public static void Start(string connectionStr)
{
if (string.IsNullOrWhiteSpace(connectionStr))
throw new ArgumentException($"{nameof(connectionStr)} cannot be null or empty.");
ConnectionString = connectionStr;
lock (Sessions)