protected MsSqlWatcher(string name, MsSqlWatcherConfiguration configuration) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException("Watcher name can not be empty."); } if (configuration == null) { throw new ArgumentNullException(nameof(configuration), "MSSQL Watcher configuration has not been provided."); } Name = name; _configuration = configuration; _msSql = _configuration.MsSqlProvider(); }