Exemple #1
0
        public void Start()
        {
            foreach (var builder in _consumeBuilders)
            {
                var metadata = new ConsumeMetadata()
                {
                    ServerOptions  = builder.ServerOptions,
                    ConsumeOptions = builder.ConsumeOptions,
                    HandlerType    = builder.HandlerType
                };
                ConsumeMetadataFactory.Set(metadata);
                new ConsumeChannel(metadata);
            }

            foreach (var builder in _publishBuilders)
            {
                var metadata = new PublishMessagingMetadata(builder.MessageType, builder.ServerOptions, builder.PublishOptions);
                PublishMessagingMetadataFactory.AddMessagingMetadata(metadata);
            }
        }
Exemple #2
0
 public void ConsumeRequestHeaders(ConsumeMetadata consumer)
 {
     metadataConsumer = consumer;
 }