Exemplo n.º 1
0
 public AmqpMessageBuilder(
     IAmqpSerializerFactory serializerFactory,
     IAmqpPropertyBuilder propertyBuilder,
     IAmqpRouter router)
 {
     this.serializerFactory = serializerFactory;
     this.propertyBuilder   = propertyBuilder;
     this.router            = router;
 }
Exemplo n.º 2
0
 public AmqpSubscriptionBuilder()
 {
     this.Serializers = new Dictionary <string, IAmqpSerializer>
     {
         { "plain/text", new SimpleSerializer() }
     };
     this.ConnectionFactory = new AsyncAmqpConnectionFactory(new Uri("amqp://"));
     this.router            = new AmqpRouter();
     this.propertyBuilder   = new AmqpPropertyBuilder();
     this.subscriptions     = new List <Func <IAmqpConnectionFactory, IAmqpMessageBuilder, ISubscriptionRegistry, ISubscriptionTag> >();
 }