Пример #1
0
        public ChoRegistryChangeMonitor(RegistryHive registryHive, string keyPath, bool autoStart)
        {
            ChoGuard.ArgumentNotNullOrEmpty(keyPath, "KeyPath");

            Init(registryHive);
            _fullyQualifiedRegistryKey = String.Format(@"{0}\{1}", registryHive.ToDescription(), _keyPath);

            if (autoStart)
            {
                Start();
            }
        }