MessagingFactory.Create Method

Definition

Overloads

Create(Uri, TokenProvider)

Creates a new MessagingFactory object.

Create(Uri, MessagingFactorySettings)

Creates a new MessagingFactory object.

Create(String, TokenProvider)

Creates a new MessagingFactory object.

Create(String, MessagingFactorySettings)

Creates a new MessagingFactory object.

Create(IEnumerable<Uri>, TokenProvider)

Creates a new MessagingFactory object.

Create(IEnumerable<Uri>, MessagingFactorySettings)

Creates a new MessagingFactory object.

Create(IEnumerable<String>, TokenProvider)

Creates a new MessagingFactory object.

Create(IEnumerable<String>, MessagingFactorySettings)

Creates a new MessagingFactory object.

Create(Uri)

Creates a new MessagingFactory object.

Create(String)

Creates a new MessagingFactory object.

Create(IEnumerable<Uri>)

Creates a new MessagingFactory object.

Create(IEnumerable<String>)

Creates a new MessagingFactory object.

Create()

Creates a new messaging factory object.

Create(Uri, TokenProvider)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (Uri address, Microsoft.ServiceBus.TokenProvider tokenProvider);
Parameters
address
Uri

The base address of the namespace.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Exceptions

address contains a path appended to the full address of the service namespace.

Thrown when tokenProvider or address are null.

Create(Uri, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (Uri address, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
Parameters
address
Uri

The namespace base address.

factorySettings
MessagingFactorySettings

The MessagingFactory settings.

Returns

The newly created MessagingFactory object.

Exceptions

Thrown when address or factorySettings is null.

address contains a path appended to the full address of the service namespace.

Create(String, TokenProvider)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address, Microsoft.ServiceBus.TokenProvider tokenProvider);
Parameters
address
String

The base address of the namespace.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Exceptions

address contains a path appended to the full address of the service namespace.

Thrown when address is empty.

Thrown when tokenProvider or address are null.

Create(String, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
Parameters
address
String

The base address of the service namespace.

factorySettings
MessagingFactorySettings

The MessagingFactory settings.

Returns

The newly created MessagingFactory object.

Exceptions

Thrown when address is empty.

Thrown when factorySettings or address are null.

address contains a path appended to the full address of the service namespace.

Create(IEnumerable<Uri>, TokenProvider)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<Uri> addresses, Microsoft.ServiceBus.TokenProvider tokenProvider);
Parameters
addresses
IEnumerable<Uri>

An enumeration of address.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Create(IEnumerable<Uri>, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<Uri> addresses, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
Parameters
addresses
IEnumerable<Uri>

An enumeration of address.

factorySettings
MessagingFactorySettings

The factory settings.

Returns

The newly created MessagingFactory object.

Create(IEnumerable<String>, TokenProvider)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<string> addresses, Microsoft.ServiceBus.TokenProvider tokenProvider);
Parameters
addresses
IEnumerable<String>

An enumeration of base addresses.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Create(IEnumerable<String>, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<string> addresses, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
Parameters
addresses
IEnumerable<String>

An enumeration of base addresses.

factorySettings
MessagingFactorySettings

The factory settings.

Returns

The newly created MessagingFactory object.

Create(Uri)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (Uri address);
Parameters
address
Uri

The namespace base address.

Returns

The newly created MessagingFactory object.

Create(String)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address);
Parameters
address
String

The base address of the service namespace.

Returns

The newly created MessagingFactory object.

Create(IEnumerable<Uri>)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<Uri> addresses);
Parameters
addresses
IEnumerable<Uri>

An enumeration of address.

Returns

The newly created MessagingFactory object.

Create(IEnumerable<String>)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<string> addresses);
Parameters
addresses
IEnumerable<String>

An enumeration of base addresses.

Returns

The newly created MessagingFactory object.

Create()

Creates a new messaging factory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create ();
Returns

The newly created MessagingFactory object.

Applies to