private static bool CheckRequiredOptions(string resourceGroup, ListerArguments a) { if (string.IsNullOrEmpty(resourceGroup)) { Console.WriteLine("Resource group name is required"); return(false); } if (string.IsNullOrEmpty(a.NamespaceName)) { Console.WriteLine("Namespace is required"); return(false); } if (string.IsNullOrEmpty(a.KeyName)) { Console.WriteLine("Key name is required"); return(false); } if (string.IsNullOrEmpty(a.TopicQueueName)) { Console.WriteLine("Topic name is required"); return(false); } if (string.IsNullOrEmpty(a.Name)) { Console.WriteLine("Subscription name is required"); return(false); } return(true); }
public Lister(string connectionString, ListerArguments a) : base(connectionString, GetEntityPath(a.Type, a.TopicQueueName, a.Name, a.Dead)) { }