public void Execute() { var def = new TServDef(); var routes = new Routes(_deps.Prefix, def.Label()); var publFactoryBuilder = new PublisherFactoryBuilder(routes, _deps, def.Label(), "none"); def.Configure(new ExecuteConfigurator(null !, publFactoryBuilder)); _publisherFactory = publFactoryBuilder.Build(); var contextFactory = new MessageContextFactory(_publisherFactory); var consumeCatalog = new ConsumeCatalogBuilder(routes, contextFactory, _impl.GetConsumerFactory(), _deps); def.Configure(new ExecuteConfigurator(consumeCatalog, null !)); consumeCatalog.Register(_consumer); }
public ExecuteConfigurator(ConsumeCatalogBuilder consumeCatalog, PublisherFactoryBuilder publishCatalog) => (_consumeCatalog, _publishCatalog) = (consumeCatalog, publishCatalog);