Added connection string check to cache start.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user