/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/MassTransit.Tests/NewConfigurationModel.cs
69 строк
2 KB
Chris Patterson
Reshuffle around stuff in preparation for github actions from @maldworth
20 май 2020, 01:45
20 май 2020, 01:45
7fe6ace
Код
Авторство
О чём код?
namespace MassTransit.Tests { public class NewConfigurationModel { public void bob() { Bus.Initialize(ep=> { //// //HIGH USAGE OPTIONS //// //ep.SetDefaultSerializer(); //the auto register should be enabled by default. //there should be a turn off that requires you to pick the desired transports. //ep.RegisterTransport(); //// //ADVANCED OPTION //// //ep.ConfigureEndpoint(); }, bus=> { //// //HARD REQUIREMENTS //// bus.ReceiveFrom("msmq://localhost/bob"); //// //PROBABLY MOST OFTEN USED CONFIG OPTIONS //// //bus.SetObjectBuilder(); //bus.SendErrorsTo(); //// //These are REAL options - absolutely not required for this to work. //// bus.DisableAutoStart(); bus.EnableAutoSubscribe(); bus.PurgeBeforeStarting(); //// //Extension point //// //add bus services? is service the right concept? //bus.AddService(); //// //ADVANCED OPTIONS //// //bus.AfterConsumingMessage(); //bus.BeforeConsumingMessage(); //bus.SetConcurrentConsumerLimit(); //bus.SetConcurrentReceiverLimit(); //bus.SetReceiveTimeout(); //bus.UseControlBus(); //// //SHOULD BE OBSOLETED //// //bus.SetEndpointFactory(); }); } } }