Show / Hide Table of Contents

# Class TransportFactory

##### Inheritance

System.Object
TransportFactory

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.Transport

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class TransportFactory

### Methods

| Improve this Doc View Source

#### CompositeConnect(Uri)

##### Declaration

    public static ITransport CompositeConnect(Uri location)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Uri | location |

##### Returns

Type | Description
--- | ---
ITransport |

| Improve this Doc View Source

#### CreateTransport(Uri)

Creates a normal transport.

##### Declaration

    public static ITransport CreateTransport(Uri location)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Uri | location |

##### Returns

Type | Description
--- | ---
ITransport | the transport

| Improve this Doc View Source

#### HandleException(Exception)

##### Declaration

    public static void HandleException(Exception ex)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Exception | ex |

| Improve this Doc View Source

#### RegisterTransportFactory(String, Type)

##### Declaration

    public void RegisterTransportFactory(string scheme, Type factoryType)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | scheme |
System.Type | factoryType |

### Events

| Improve this Doc View Source

#### OnException

##### Declaration

    public static event ExceptionListener OnException

##### Event Type

Type | Description
--- | ---
Apache.NMS.ExceptionListener |