Class TransportConnectionConfiguration
- Namespace
- JobFlow.Core.Infrastructure.Transports
- Assembly
- JobFlow.Core.dll
Transport connection mapping.
public class TransportConnectionConfiguration : KeyedServiceConfiguration<TransportFactoryTypeAttribute, ITransportConnectionFactory>, IKeyedServiceConfiguration<TransportFactoryTypeAttribute, ITransportConnectionFactory>
- Inheritance
-
TransportConnectionConfiguration
- Implements
- Inherited Members
- Extension Methods
Remarks
This is used to map a transport connection name to its corresponding connection factory.
Methods
Add(string, Type, TransportOptionFlags)
Add a new mapping.
public void Add(string name, Type type, TransportOptionFlags flags = TransportOptionFlags.None)
Parameters
name
stringtype
TypeMust derive from ITransportConnectionFactory
flags
TransportOptionFlags
Exceptions
Add<T>(string, TransportOptionFlags)
Add a new mapping.
public void Add<T>(string name, TransportOptionFlags flags = TransportOptionFlags.None) where T : ITransportConnectionFactory
Parameters
name
stringflags
TransportOptionFlags
Type Parameters
T
Must derive from ITransportConnectionFactory