internal string TypeDescriptionOrDefault(PrtgObject obj, string @default = "object") { if (obj == null) { return(@default); } return(obj.GetTypeDescription().ToLower()); }
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}'"); } }
private void ExecuteOperation(PrtgObject obj, string url) { var server = PrtgUrl.AddUrlPrefix(client.Server); ExecuteOperation(() => Process.Start($"{server}{url}"), $"Opening {obj.GetTypeDescription()} '{obj.Name}'"); }