private void ConfigureTriggerAdapter() { if (_settings.TriggerAdapter == "Test") { var triggerAdapter = new TriggerAdapter(); triggerAdapter.Initialize(); _triggerAdapterShutdown = () => { triggerAdapter.Shutdown(); }; // Wire upstream ports into adapter triggerAdapter.Handle(Container.GetInstance <AddBookTitleRequestUseCase>()); } else if (_settings.TriggerAdapter == "RabbitMq") { var triggerAdapter = new Adapter.Trigger.RabbitMq.TriggerAdapter(); triggerAdapter.Initialize(); _triggerAdapterShutdown = () => { triggerAdapter.Shutdown(); }; // Wire upstream ports into adapter triggerAdapter.Handle(Container.GetInstance <AddBookTitleRequestUseCase>()); } }
private void AttachUseCasesToTriggers() { _triggerAdapter.Handle(Container.GetInstance <AddBookTitleRequestUseCase>()); }
private void AttachUseCasesToTriggers() { // Wire upstream ports into adapter _triggerAdapter.Handle(Container.GetInstance <AddBookTitleRequestUseCase>()); }
private void AttachUseCasesToTriggers() { // Wire use cases from domain to be triggered from RabbitMq messages _triggerAdapter.Handle(_container.GetInstance <AddBookTitleRequestUseCase>()); }