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); } }
public void ConsumeRequestHeaders(ConsumeMetadata consumer) { metadataConsumer = consumer; }