Esempio n. 1
0
        internal string TypeDescriptionOrDefault(PrtgObject obj, string @default = "object")
        {
            if (obj == null)
            {
                return(@default);
            }

            return(obj.GetTypeDescription().ToLower());
        }
Esempio n. 2
0
        private void ExecuteOperation(PrtgObject obj, string url)
        {
            var server = PrtgRequestMessage.AddUrlPrefix(client.Server);

            if (ShouldProcess($"'{obj}' (ID: {obj.Id}, Type: {obj.Type})"))
            {
                ExecuteOperation(() => Process.Start($"{server}{url}"), $"Opening {obj.GetTypeDescription()} '{obj.Name}'");
            }
        }
Esempio n. 3
0
        private void ExecuteOperation(PrtgObject obj, string url)
        {
            var server = PrtgUrl.AddUrlPrefix(client.Server);

            ExecuteOperation(() => Process.Start($"{server}{url}"), $"Opening {obj.GetTypeDescription()} '{obj.Name}'");
        }