C# Class Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ServiceBusClientExtensions

Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Méthodes publiques

Méthode Description
CreateNamespace ( string name, string location, NamespaceType type, bool createACSNamespace = false ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace
CreateNotificationHub ( string namespaceName, string name ) : NotificationHubDescription

Creates new service bus notification hub in the given name.

CreateQueue ( string namespaceName, string name ) : QueueDescription

Creates new service bus queue in the given name.

CreateRelay ( string namespaceName, string name, RelayType type ) : RelayDescription

Creates new service bus relay in the given name.

CreateSharedAccessAuthorization ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Creates shared access signature authorization for the service bus entity. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.

CreateSharedAccessAuthorization ( string namespaceName, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Creates shared access signature authorization for the service bus namespace. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.

CreateTopic ( string namespaceName, string name ) : TopicDescription

Creates new service bus topic in the given name.

GetAuthorizationRule ( string namespaceName, string ruleName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Gets the authorization rule with the specified name in the namespace level.

GetAuthorizationRule ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Gets the authorization rule with the specified name in the entity level.

GetAuthorizationRule ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption filterOptions ) : List

Gets authorization rules based on the passed filter options.

GetConnectionString ( string namespaceName ) : List

Gets all the available connection strings for given namespace.

GetConnectionString ( string namespaceName, string entityName, ServiceBusEntityType entityType ) : List

Gets available connection strings for the specified entity.

GetConnectionString ( string namespaceName, string keyName ) : string

Gets the connection string with the given name.

GetConnectionString ( string namespaceName, string entityName, ServiceBusEntityType entityType, string keyName ) : string

Gets the connection string with the given name for the entity.

GetDefaultLocation ( ) : string
GetNamespace ( string name ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace
GetNamespace ( ) : List
GetServiceBusRegions ( ) : List
IsAvailableNamespace ( string name ) : bool
NamespaceExists ( string name ) : bool
RemoveAuthorizationRule ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption options ) : void

Removes set of authorization rules that matches filter options.

RemoveAuthorizationRule ( string namespaceName, string ruleName ) : void

Removes shared access signature authorization for the service bus namespace.

RemoveAuthorizationRule ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName ) : void

Removed shared access signature authorization for the service bus entity.

RemoveNamespace ( string name ) : bool
ServiceBusClientExtensions ( ) : System

Parameterless constructs for mocking framework.

ServiceBusClientExtensions ( AzureSMProfile profile ) : System

Creates new instance from ServiceBusClientExtensions

UpdateSharedAccessAuthorization ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Updates shared access signature authorization for the service bus entity. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.

UpdateSharedAccessAuthorization ( string namespaceName, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

Updates shared access signature authorization for the service bus namespace. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.

Private Methods

Méthode Description
CreateExtendedAuthorizationRule ( AuthorizationRule rule, string namespaceName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
CreateExtendedAuthorizationRule ( AuthorizationRule rule, string namespaceName, string entityName, ServiceBusEntityType entityType ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
CreateNamespaceManager ( string namespaceName ) : NamespaceManager
FilterAuthorizationRules ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption options ) : List
GetAuthorizationRuleCore ( string namespaceName, string entityName, ServiceBusEntityType entityType, Predicate match ) : List
GetAuthorizationRulesToFilter ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption options ) : List
GetExtendedServiceBusNamespace ( string name ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace
IsActiveNamespace ( string name ) : bool
TryGetNamespace ( string name ) : Microsoft.WindowsAzure.Management.ServiceBus.Models.ServiceBusNamespace

Method Details

CreateNamespace() public méthode

public CreateNamespace ( string name, string location, NamespaceType type, bool createACSNamespace = false ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace
name string
location string
type NamespaceType
createACSNamespace bool
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace

CreateNotificationHub() public méthode

Creates new service bus notification hub in the given name.
public CreateNotificationHub ( string namespaceName, string name ) : NotificationHubDescription
namespaceName string The namespace name
name string The notification hub name
Résultat NotificationHubDescription

CreateQueue() public méthode

Creates new service bus queue in the given name.
public CreateQueue ( string namespaceName, string name ) : QueueDescription
namespaceName string The namespace name
name string The queue name
Résultat QueueDescription

CreateRelay() public méthode

Creates new service bus relay in the given name.
public CreateRelay ( string namespaceName, string name, RelayType type ) : RelayDescription
namespaceName string The namespace name
name string The relay name
type RelayType The relay type
Résultat RelayDescription

CreateSharedAccessAuthorization() public méthode

Creates shared access signature authorization for the service bus entity. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.
public CreateSharedAccessAuthorization ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The service bus namespace name
entityName string The fully qualified service bus entity name
entityType ServiceBusEntityType The service bus entity type (e.g. Queue)
ruleName string The SAS authorization rule name
primaryKey string The SAS primary key. It'll be generated if empty
secondaryKey string The SAS secondary key
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

CreateSharedAccessAuthorization() public méthode

Creates shared access signature authorization for the service bus namespace. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.
public CreateSharedAccessAuthorization ( string namespaceName, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The service bus namespace name
ruleName string The SAS authorization rule name
primaryKey string The SAS primary key. It'll be generated if empty
secondaryKey string The SAS secondary key
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

CreateTopic() public méthode

Creates new service bus topic in the given name.
public CreateTopic ( string namespaceName, string name ) : TopicDescription
namespaceName string The namespace name
name string The topic name
Résultat TopicDescription

GetAuthorizationRule() public méthode

Gets the authorization rule with the specified name in the namespace level.
public GetAuthorizationRule ( string namespaceName, string ruleName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The namespace name
ruleName string The rule name
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

GetAuthorizationRule() public méthode

Gets the authorization rule with the specified name in the entity level.
public GetAuthorizationRule ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The namespace name
entityName string The entity name
entityType ServiceBusEntityType The entity type
ruleName string The rule name
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

GetAuthorizationRule() public méthode

Gets authorization rules based on the passed filter options.
public GetAuthorizationRule ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption filterOptions ) : List
filterOptions Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption The filter options
Résultat List

GetConnectionString() public méthode

Gets all the available connection strings for given namespace.
public GetConnectionString ( string namespaceName ) : List
namespaceName string The namespace name
Résultat List

GetConnectionString() public méthode

Gets available connection strings for the specified entity.
public GetConnectionString ( string namespaceName, string entityName, ServiceBusEntityType entityType ) : List
namespaceName string The namespace name
entityName string The entity name
entityType ServiceBusEntityType The entity type
Résultat List

GetConnectionString() public méthode

Gets the connection string with the given name.
public GetConnectionString ( string namespaceName, string keyName ) : string
namespaceName string The namespace name
keyName string The connection string key name
Résultat string

GetConnectionString() public méthode

Gets the connection string with the given name for the entity.
public GetConnectionString ( string namespaceName, string entityName, ServiceBusEntityType entityType, string keyName ) : string
namespaceName string The namespace name
entityName string
entityType ServiceBusEntityType
keyName string The connection string key name
Résultat string

GetDefaultLocation() public méthode

public GetDefaultLocation ( ) : string
Résultat string

GetNamespace() public méthode

public GetNamespace ( string name ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace
name string
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedServiceBusNamespace

GetNamespace() public méthode

public GetNamespace ( ) : List
Résultat List

GetServiceBusRegions() public méthode

public GetServiceBusRegions ( ) : List
Résultat List

IsAvailableNamespace() public méthode

public IsAvailableNamespace ( string name ) : bool
name string
Résultat bool

NamespaceExists() public méthode

public NamespaceExists ( string name ) : bool
name string
Résultat bool

RemoveAuthorizationRule() public méthode

Removes set of authorization rules that matches filter options.
public RemoveAuthorizationRule ( Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption options ) : void
options Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.AuthorizationRuleFilterOption The filter options
Résultat void

RemoveAuthorizationRule() public méthode

Removes shared access signature authorization for the service bus namespace.
public RemoveAuthorizationRule ( string namespaceName, string ruleName ) : void
namespaceName string The service bus namespace name
ruleName string The SAS authorization rule name
Résultat void

RemoveAuthorizationRule() public méthode

Removed shared access signature authorization for the service bus entity.
public RemoveAuthorizationRule ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName ) : void
namespaceName string The service bus namespace name
entityName string The fully qualified service bus entity name
entityType ServiceBusEntityType The service bus entity type (e.g. Queue)
ruleName string The SAS authorization rule name
Résultat void

RemoveNamespace() public méthode

public RemoveNamespace ( string name ) : bool
name string
Résultat bool

ServiceBusClientExtensions() public méthode

Parameterless constructs for mocking framework.
public ServiceBusClientExtensions ( ) : System
Résultat System

ServiceBusClientExtensions() public méthode

Creates new instance from ServiceBusClientExtensions
public ServiceBusClientExtensions ( AzureSMProfile profile ) : System
profile AzureSMProfile
Résultat System

UpdateSharedAccessAuthorization() public méthode

Updates shared access signature authorization for the service bus entity. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.
public UpdateSharedAccessAuthorization ( string namespaceName, string entityName, ServiceBusEntityType entityType, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The service bus namespace name
entityName string The fully qualified service bus entity name
entityType ServiceBusEntityType The service bus entity type (e.g. Queue)
ruleName string The SAS authorization rule name
primaryKey string The SAS primary key. It'll be generated if empty
secondaryKey string The SAS secondary key
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule

UpdateSharedAccessAuthorization() public méthode

Updates shared access signature authorization for the service bus namespace. This authorization works on public Microsoft Azure environments and Windows Azure Pack on prim as well.
public UpdateSharedAccessAuthorization ( string namespaceName, string ruleName, string primaryKey, string secondaryKey ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
namespaceName string The service bus namespace name
ruleName string The SAS authorization rule name
primaryKey string The SAS primary key. It'll be generated if empty
secondaryKey string The SAS secondary key
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule