Interface IConnectionFactory
- Namespace
- Steeltoe.Messaging.RabbitMQ.Connection
- Assembly
- Steeltoe.Messaging.RabbitMQ.dll
public interface IConnectionFactory : IDisposable, IServiceNameAware
- Inherited Members
Properties
Host
Gets the host name for the connection factory
string Host { get; }
Property Value
IsPublisherConfirms
Gets a value indicating whether if publisher confirms are enabled
bool IsPublisherConfirms { get; }
Property Value
IsPublisherReturns
Gets a value indicating whether if publisher returns are enabled
bool IsPublisherReturns { get; }
Property Value
IsSimplePublisherConfirms
Gets a value indicating whether if simple publisher confirms are enabled
bool IsSimplePublisherConfirms { get; }
Property Value
Port
Gets the port number for this connection factory
int Port { get; }
Property Value
PublisherConnectionFactory
Gets the publisher connection factory that will be used;
IConnectionFactory PublisherConnectionFactory { get; }
Property Value
Username
Gets the user name for the connection factory
string Username { get; }
Property Value
VirtualHost
Gets the virtual host name for the connection factory
string VirtualHost { get; }
Property Value
Methods
AddConnectionListener(IConnectionListener)
Add a connection listener to this factory
void AddConnectionListener(IConnectionListener connectionListener)
Parameters
connectionListener
IConnectionListenerthe listener to add
ClearConnectionListeners()
Remove all connection listeners
void ClearConnectionListeners()
CreateConnection()
Create a connection
IConnection CreateConnection()
Returns
- IConnection
the connection if successful
Destroy()
Close underlying shared connection. The factory is still able to create new connections after this call
void Destroy()
RemoveConnectionListener(IConnectionListener)
Remove a connection facotry from this factory
bool RemoveConnectionListener(IConnectionListener connectionListener)
Parameters
connectionListener
IConnectionListenerthe listener to remove
Returns
- bool
true if removed