public RegistryKeyMonitor( RegistryHive hive, string key, RegistryNotifyFilter filter, RegistryKeyWatch watch, KeyChangedDelegate keyChanged, ExceptionRaisedDelegate exceptionRaised) { if (keyChanged == null) { throw new ArgumentNullException(nameof(keyChanged)); } if (exceptionRaised == null) { throw new ArgumentNullException(nameof(exceptionRaised)); } RegistryHive = hive; Key = key; Filter = filter; WatchSubTree = watch == RegistryKeyWatch.KeyAndSubKeys; this.keyChanged = keyChanged; this.exceptionRaised = exceptionRaised; StartMonitor(); }
public RegistryKeyMonitor( RegistryHive hive, string key, KeyChangedDelegate keyChanged, ExceptionRaisedDelegate exceptionRaised) : this(hive, key, ALL_FILTERS, keyChanged, exceptionRaised) { }
public RegistryKeyMonitor( RegistryHive hive, string key, RegistryNotifyFilter filter, KeyChangedDelegate keyChanged, ExceptionRaisedDelegate exceptionRaised) : this(hive, key, filter, RegistryKeyWatch.KeyAndSubKeys, keyChanged, exceptionRaised) { }