Share via


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);
static member Create : Uri * Microsoft.ServiceBus.TokenProvider -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As Uri, tokenProvider As TokenProvider) As MessagingFactory

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.

Applies to

Create(Uri, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (Uri address, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
static member Create : Uri * Microsoft.ServiceBus.Messaging.MessagingFactorySettings -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As Uri, factorySettings As MessagingFactorySettings) As MessagingFactory

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.

Applies to

Create(String, TokenProvider)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address, Microsoft.ServiceBus.TokenProvider tokenProvider);
static member Create : string * Microsoft.ServiceBus.TokenProvider -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As String, tokenProvider As TokenProvider) As MessagingFactory

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.

Applies to

Create(String, MessagingFactorySettings)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address, Microsoft.ServiceBus.Messaging.MessagingFactorySettings factorySettings);
static member Create : string * Microsoft.ServiceBus.Messaging.MessagingFactorySettings -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As String, factorySettings As MessagingFactorySettings) As MessagingFactory

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.

Applies to

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);
static member Create : seq<Uri> * Microsoft.ServiceBus.TokenProvider -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of Uri), tokenProvider As TokenProvider) As MessagingFactory

Parameters

addresses
IEnumerable<Uri>

An enumeration of address.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Applies to

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);
static member Create : seq<Uri> * Microsoft.ServiceBus.Messaging.MessagingFactorySettings -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of Uri), factorySettings As MessagingFactorySettings) As MessagingFactory

Parameters

addresses
IEnumerable<Uri>

An enumeration of address.

factorySettings
MessagingFactorySettings

The factory settings.

Returns

The newly created MessagingFactory object.

Applies to

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);
static member Create : seq<string> * Microsoft.ServiceBus.TokenProvider -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of String), tokenProvider As TokenProvider) As MessagingFactory

Parameters

addresses
IEnumerable<String>

An enumeration of base addresses.

tokenProvider
TokenProvider

The token provider.

Returns

The newly created MessagingFactory object.

Applies to

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);
static member Create : seq<string> * Microsoft.ServiceBus.Messaging.MessagingFactorySettings -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of String), factorySettings As MessagingFactorySettings) As MessagingFactory

Parameters

addresses
IEnumerable<String>

An enumeration of base addresses.

factorySettings
MessagingFactorySettings

The factory settings.

Returns

The newly created MessagingFactory object.

Applies to

Create(Uri)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (Uri address);
static member Create : Uri -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As Uri) As MessagingFactory

Parameters

address
Uri

The namespace base address.

Returns

The newly created MessagingFactory object.

Applies to

Create(String)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (string address);
static member Create : string -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (address As String) As MessagingFactory

Parameters

address
String

The base address of the service namespace.

Returns

The newly created MessagingFactory object.

Applies to

Create(IEnumerable<Uri>)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<Uri> addresses);
static member Create : seq<Uri> -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of Uri)) As MessagingFactory

Parameters

addresses
IEnumerable<Uri>

An enumeration of address.

Returns

The newly created MessagingFactory object.

Applies to

Create(IEnumerable<String>)

Creates a new MessagingFactory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create (System.Collections.Generic.IEnumerable<string> addresses);
static member Create : seq<string> -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create (addresses As IEnumerable(Of String)) As MessagingFactory

Parameters

addresses
IEnumerable<String>

An enumeration of base addresses.

Returns

The newly created MessagingFactory object.

Applies to

Create()

Creates a new messaging factory object.

public static Microsoft.ServiceBus.Messaging.MessagingFactory Create ();
static member Create : unit -> Microsoft.ServiceBus.Messaging.MessagingFactory
Public Shared Function Create () As MessagingFactory

Returns

The newly created MessagingFactory object.

Applies to