protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ReceiveEndpoint("input_queue_error", x => { _errorHandler = Handled<PingMessage>(x); }); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ReceiveEndpoint("execute_testactivity", x => { x.ExecuteActivityHost<TestActivity, TestArguments>(_compensateUri, h => { h.UseConsoleLog(async log => log.Context.ActivityName); h.Arguments(a => a.UseConsoleLog(async log => log.Context.Arguments.Value)); h.RoutingSlip(rs => rs.UseConsoleLog(async log => log.Context.Message.TrackingNumber.ToString("N"))); }); }); configurator.ReceiveEndpoint("compensate_testactivity", x => { x.CompensateActivityHost<TestActivity, TestLog>(h => { h.UseConsoleLog(async log => log.Context.Log.OriginalValue); h.Log(l => l.UseConsoleLog(async log => log.Context.Log.OriginalValue)); h.RoutingSlip(rs => rs.UseConsoleLog(async log => log.Context.Message.TrackingNumber.ToString("N"))); }); }); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { ISchedulerFactory schedulerFactory = new StdSchedulerFactory(); _scheduler = schedulerFactory.GetScheduler(); configurator.UseInMemoryScheduler(); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ConfigureSend(s => s.UseTransform<A>(t => { t.Replace(x => x.Second, context => "World"); })); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { // configurator.Subscribe(s => // s.Handler<A>(async msg => // { // _before.Release(); // _wait.WaitOne(TimeSpan.FromSeconds(30)); // _after.Release(); // })); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { ISchedulerFactory schedulerFactory = new StdSchedulerFactory(); _scheduler = schedulerFactory.GetScheduler(); configurator.ReceiveEndpoint("quartz", x => { x.Consumer(() => new ScheduleMessageConsumer(_scheduler)); x.Consumer(() => new CancelScheduledMessageConsumer(_scheduler)); }); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ReceiveEndpoint("execute_testactivity", x => { x.ExecuteActivityHost<TestActivity, TestArguments>(_compensateUri); }); configurator.ReceiveEndpoint("compensate_testactivity", x => { x.CompensateActivityHost<TestActivity, TestLog>(); }); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); var builder = new MongoUrlBuilder { DatabaseName = EventDatabaseName, Server = new MongoServerAddress("localhost"), Username = "******", Password = "******", ConnectTimeout = TimeSpan.FromSeconds(30), ConnectionMode = ConnectionMode.Automatic, GuidRepresentation = GuidRepresentation.Standard }; var url = builder.ToMongoUrl(); Client = new MongoClient("mongodb://127.0.0.1"); Database = Client.GetDatabase(EventDatabaseName); _convention = new MassTransitMongoDbConventions(); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseDelayedMessageScheduler(); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.ConfigureRoutingSlipEventCorrelation(); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureInMemoryBus(configurator); configurator.UseRetry(x => x.None()); }
protected override void ConfigureEndpoints(IInMemoryBusFactoryConfigurator configurator) { configurator.ConfigureEndpoints(_container); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.ReceiveEndpoint("service_queue", ConfigureServiceQueueEndpoint); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureInMemoryBus(configurator); configurator.UseMessageRetry(r => r.Intervals(200, 500)); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureInMemoryBus(configurator); configurator.UseScheduledRedelivery(r => r.Intervals(200, 500)); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseRawJsonSerializer(); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ServiceInstance(x => x.ConfigureEndpoints(Registration)); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UsePrometheusMetrics(serviceName: "unit_test"); }
protected virtual void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.UseInMemoryScheduler(); }
private void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseMessageScheduler(TestConstants.QuartzAddress); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { _management = configurator.ManagementEndpoint(); base.ConfigureBus(configurator); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.UseMessageScheduler(QuartzAddress); }
public BusFactoryConfigurator(IInMemoryBusFactoryConfigurator configurator) { _configurator = configurator; }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.EnableWindowsPerformanceCounters(); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureInMemoryBus(configurator); configurator.ReceiveEndpoint("service_queue", ConfigureServiceQueueEndpoint); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseRetry(Retry.Immediate(1)); base.ConfigureBus(configurator); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ConfigureEndpoints(Registration); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseInMemoryScheduler(out _schedulerTask); base.ConfigureInMemoryBus(configurator); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { _messageDataRepository = new InMemoryMessageDataRepository(); configurator.UseMessageData(_messageDataRepository); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); _busFactoryConfigurator = configurator; }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ConfigureSend(cfg => cfg.UseFilter(new TestScopeFilter(_taskCompletionSource))); configurator.ConfigurePublish(cfg => cfg.UseFilter(new TestScopeFilter(_taskCompletionSource))); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ReceiveEndpoint(SubsequentQueueName, cfg => cfg.ConfigureConsumer <SubsequentConsumer>(Registration)); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.TransportConcurrencyLimit = 16; }
protected virtual void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { OnConfigureInMemoryBus?.Invoke(configurator); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ConfigureEndpoints(_provider.GetRequiredService <IBusRegistrationContext>()); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureInMemoryBus(configurator); configurator.UseMessageScheduler(QuartzAddress); }
protected override void PreCreateBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseBsonSerializer(); base.PreCreateBus(configurator); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseXmlSerializer(); base.ConfigureBus(configurator); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { configurator.ConnectConsumerConfigurationObserver(new FilterConfigurationObserver()); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseRetry(Retry.Immediate(1)); base.ConfigureBus(configurator); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseBinarySerializer(); base.ConfigureBus(configurator); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.UseRetry(Retry.None); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.ConfigureRoutingSlipEventCorrelation(); }
protected override void ConfigureInMemoryBus(IInMemoryBusFactoryConfigurator configurator) { ConfigureEndpoints(configurator); }
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { configurator.UseBinarySerializer(); }
protected abstract void ConfigureEndpoints(IInMemoryBusFactoryConfigurator configurator);
protected override void ConfigureBus(IInMemoryBusFactoryConfigurator configurator) { base.ConfigureBus(configurator); configurator.EnableWindowsPerformanceCounters(); }