Show / Hide Table of Contents

# Class DiscoveryTransportFactory

##### Inheritance

System.Object
FailoverTransportFactory
DiscoveryTransportFactory

##### Implements

ITransportFactory

##### Inherited Members

FailoverTransportFactory.CompositeConnect(Uri)
FailoverTransportFactory.CreateTransport(Uri)
FailoverTransportFactory.CreateTransport(StringDictionary)
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.Discovery

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

##### Syntax

    [ActiveMQTransportFactory("discovery")]
    public class DiscoveryTransportFactory : FailoverTransportFactory, ITransportFactory

### Methods

| Improve this Doc View Source

#### CreateTransport(ICompositeTransport, URISupport.CompositeData, StringDictionary)

Factory method for creating a DiscoveryTransport. The Discovery Transport wraps the given ICompositeTransport and will add and remove Transport URIs as they are discovered.

##### Declaration

    public static DiscoveryTransport CreateTransport(ICompositeTransport compositeTransport, URISupport.CompositeData compositeData, StringDictionary options)

##### Parameters

Type | Name | Description
--- | --- | ---
ICompositeTransport | compositeTransport |
Apache.NMS.Util.URISupport.CompositeData | compositeData |
System.Collections.Specialized.StringDictionary | options |

##### Returns

Type | Description
--- | ---
DiscoveryTransport |

| Improve this Doc View Source

#### CreateTransport(URISupport.CompositeData)

##### Declaration

    public override ITransport CreateTransport(URISupport.CompositeData compositData)

##### Parameters

Type | Name | Description
--- | --- | ---
Apache.NMS.Util.URISupport.CompositeData | compositData |

##### Returns

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

##### Overrides

FailoverTransportFactory.CreateTransport(URISupport.CompositeData)

### Implements

ITransportFactory