C# Class RawRabbit.Channel.ChannelFactory

Inheritance: IChannelFactory
Mostra file Open project: pardahlman/RawRabbit Class Usage Examples

Public Methods

Method Description
ChannelFactory ( IConnectionFactory connectionFactory, RawRabbitConfiguration config, ChannelFactoryConfiguration channelConfig ) : System
CreateChannel ( IConnection connection = null ) : IModel
CreateChannelAsync ( IConnection connection = null ) : Task
Dispose ( ) : void
GetChannel ( ) : IModel
GetChannelAsync ( ) : Task

Protected Methods

Method Description
ConnectToBroker ( ) : void
SetupConnectionRecovery ( IConnection connection = null ) : void

Private Methods

Method Description
AdjustChannelCount ( int channelCount, int requestCount ) : void
CreateAndWireupAsync ( ) : Task
EnsureRequestsAreHandled ( ) : void
GetConnectionAsync ( ) : Task
Initialize ( ) : void

Method Details

ChannelFactory() public method

public ChannelFactory ( IConnectionFactory connectionFactory, RawRabbitConfiguration config, ChannelFactoryConfiguration channelConfig ) : System
connectionFactory IConnectionFactory
config RawRabbit.Configuration.RawRabbitConfiguration
channelConfig ChannelFactoryConfiguration
return System

ConnectToBroker() protected method

protected ConnectToBroker ( ) : void
return void

CreateChannel() public method

public CreateChannel ( IConnection connection = null ) : IModel
connection IConnection
return IModel

CreateChannelAsync() public method

public CreateChannelAsync ( IConnection connection = null ) : Task
connection IConnection
return Task

Dispose() public method

public Dispose ( ) : void
return void

GetChannel() public method

public GetChannel ( ) : IModel
return IModel

GetChannelAsync() public method

public GetChannelAsync ( ) : Task
return Task

SetupConnectionRecovery() protected method

protected SetupConnectionRecovery ( IConnection connection = null ) : void
connection IConnection
return void