/// <summary> /// Executes the cmdlet. /// </summary> public override void ExecuteCmdlet() { Client = Client ?? new ServiceBusClientExtensions(CurrentContext.Subscription); if (string.IsNullOrEmpty(Name)) { WriteObject(Client.GetNamespace(), true); } else { WriteObject(Client.GetNamespace(Name)); } }
/// <summary> /// Gets list of service bus regions on the given subscription. /// </summary> public override void ExecuteCmdlet() { Client = Client ?? new ServiceBusClientExtensions(CurrentContext.Subscription); WriteObject(Client.GetServiceBusRegions(), true); }
/// <summary> /// Gets list of service bus regions on the given subscription. /// </summary> public override void ExecuteCmdlet() { Client = Client ?? new ServiceBusClientExtensions(Profile); WriteObject(Client.GetServiceBusRegions(), true); }