Exemple #1
0
        public void Execute(Dictionary <string, string> arguments)
        {
            string targetUser = "";
            int    interval   = 60;

            if (arguments.ContainsKey("/filteruser"))
            {
                targetUser = arguments["/filteruser"];
            }
            if (arguments.ContainsKey("/interval"))
            {
                interval = Int32.Parse(arguments["/interval"]);
            }
            Harvest.Monitor4624(interval, targetUser);
        }
Exemple #2
0
        public void Execute(Dictionary <string, string> arguments)
        {
            string targetUser;

            if (!arguments.TryGetValue("/filteruser", out targetUser))
            {
                targetUser = string.Empty;
            }
            int    interval;
            string intervalValue;

            interval = arguments.TryGetValue("/interval", out intervalValue)
                ? int.Parse(intervalValue)
                : 60;
            Harvest.Monitor4624(interval, targetUser);
        }
Exemple #3
0
        public void Execute(Dictionary <string, string> arguments)
        {
            string targetUser       = null;
            int    interval         = 60;
            string registryBasePath = null;

            if (arguments.ContainsKey("/filteruser"))
            {
                targetUser = arguments["/filteruser"];
            }
            if (arguments.ContainsKey("/interval"))
            {
                interval = Int32.Parse(arguments["/interval"]);
            }
            if (arguments.ContainsKey("/registry"))
            {
                registryBasePath = arguments["/registry"];
            }

            Harvest.Monitor4624(interval, targetUser, registryBasePath);
        }