/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Transports/MassTransit.EventHubIntegration/EventHubFactoryConfiguratorExtensions.cs
25 строк
992 B
Chris Patterson
Fixed #3290 - validation of endpoints in riders
13 апр 2022, 01:22
13 апр 2022, 01:22
e630300
Код
Авторство
О чём код?
namespace MassTransit { using System; using Azure.Messaging.EventHubs.Consumer; public static class EventHubFactoryConfiguratorExtensions { /// <summary> /// Subscribe to EventHub messages using default consumer group <see cref="EventHubConsumerClient.DefaultConsumerGroupName" /> /// </summary> /// <param name="configurator"></param> /// <param name="eventHubName">Event Hub name</param> /// <param name="configure"></param> /// <exception cref="ArgumentNullException"></exception> public static void ReceiveEndpoint(this IEventHubFactoryConfigurator configurator, string eventHubName, Action<IEventHubReceiveEndpointConfigurator> configure) { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); configurator.ReceiveEndpoint(eventHubName, EventHubConsumerClient.DefaultConsumerGroupName, configure); } } }