コード例 #1
0
ファイル: ServiceWrapper.cs プロジェクト: 2garryn/wpay
        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);
        }
コード例 #2
0
ファイル: ExecuteConfigurator.cs プロジェクト: 2garryn/wpay
 public ExecuteConfigurator(ConsumeCatalogBuilder consumeCatalog, PublisherFactoryBuilder publishCatalog) =>
 (_consumeCatalog, _publishCatalog) = (consumeCatalog, publishCatalog);