Ejemplo n.º 1
0
        public static ChannelConfiguration Create(Action <ChannelConfigurationDsl> config)
        {
            var configuration = new ChannelConfiguration();

            config(new ChannelConfigurationDsl(configuration));
            return(configuration);
        }
Ejemplo n.º 2
0
 public static Channel Create(
     Connection connection,
     ChannelConfiguration channelConfiguration,
     Action <ChannelConfigurationDsl> config)
 {
     config(new ChannelConfigurationDsl(channelConfiguration));
     return(new Channel(connection, channelConfiguration));
 }
Ejemplo n.º 3
0
 public Channel(
     Connection connection,
     ChannelConfiguration configuration)
 {
     _serializer      = connection.Configuration.Serializer;
     Configuration    = configuration;
     _channel         = new Lazy <IModel>(connection.CreateChannel);
     _callBackChannel = new Lazy <IModel>(connection.CreateChannel);
     replyTo          = "RpcCallBack_" + GetFriendlyApplicationName();
 }
Ejemplo n.º 4
0
 protected DefinitionBase(Connection connection)
 {
     Configuration = new ChannelConfiguration();
     Channel       = new Channel(connection, Configuration);
 }
Ejemplo n.º 5
0
 public ChannelConfigurationDsl(ChannelConfiguration configuration)
 {
     _configuration = configuration;
 }
Ejemplo n.º 6
0
 public TopicQueueConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 7
0
 public TopicExchangeConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 8
0
 public DirectQueueConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 9
0
 public DirectExchangeConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 10
0
 public FanoutQueueConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 11
0
 public FanoutExchangeConfigurationDsl(ChannelConfiguration channelConfiguration)
 {
     _channelConfiguration = channelConfiguration;
 }
Ejemplo n.º 12
0
 public static Channel Create(
     Connection connection,
     Action <ChannelConfigurationDsl> config)
 {
     return(new Channel(connection, ChannelConfiguration.Create(config)));
 }