/// <summary>
 /// Configure cluster client to use event hub persistent streams.
 /// </summary>
 public static IClientBuilder AddEventHubStreams(
     this IClientBuilder builder,
     string name,
     Action <EventHubStreamOptions> configureOptions)
 {
     return(builder.AddEventHubStreams(name, ob => ob.Configure(configureOptions)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Configure cluster client to use event hub persistent streams with default settings.
 /// </summary>
 public static IClientBuilder AddEventHubStreams(
     this IClientBuilder builder,
     string name, Action <EventHubOptions> configureEventHub)
 {
     builder.AddEventHubStreams(name, b => b.ConfigureEventHub(ob => ob.Configure(configureEventHub)));
     return(builder);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Configure cluster client to use event hub persistent streams.
 /// </summary>
 public static IClientBuilder AddEventHubStreams(
     this IClientBuilder builder,
     string name,
     Action <ClusterClientEventHubStreamConfigurator> configure)
 {
     configure?.Invoke(builder.AddEventHubStreams(name));
     return(builder);
 }
Exemplo n.º 4
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddEventHubStreams(StreamProviderName, options =>
     {
         options.ConnectionString = TestDefaultConfiguration.EventHubConnectionString;
         options.ConsumerGroup    = EHConsumerGroup;
         options.Path             = EHPath;
         options.PubSubType       = StreamPubSubType.ImplicitOnly;
     });
 }
Exemplo n.º 5
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddEventHubStreams(StreamBatchingTestConst.ProviderName, b =>
     {
         b.ConfigureEventHub(ob => ob.Configure(options =>
         {
             options.ConfigureTestDefaults(EHPath, EHConsumerGroup);
         }));
         b.ConfigureStreamPubSub(StreamPubSubType.ImplicitOnly);
     });
 }
Exemplo n.º 6
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder.AddEventHubStreams(StreamBatchingTestConst.ProviderName, b =>
                                      b.ConfigureEventHub(ob => ob.Configure(options =>
     {
         options.ConnectionString = TestDefaultConfiguration.EventHubConnectionString;
         options.ConsumerGroup    = EHConsumerGroup;
         options.Path             = EHPath;
     }))
                                      .ConfigureStreamPubSub(StreamPubSubType.ImplicitOnly));
 }
Exemplo n.º 7
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddEventHubStreams(StreamProviderName, b =>
     {
         b.ConfigureEventHub(ob => ob.Configure(options =>
         {
             options.ConfigureEventHubConnection(TestDefaultConfiguration.EventHubConnectionString, EHPath, EHConsumerGroup);
         }));
         b.UseDataAdapter((sp, n) => ActivatorUtilities.CreateInstance <EventHubDataAdapter>(sp));
     });
 }
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddEventHubStreams(StreamProviderName, b =>
     {
         b.ConfigureEventHub(ob => ob.Configure(options =>
         {
             options.ConfigureTestDefaults(EHPath, EHConsumerGroup);
         }));
         b.UseDataAdapter((s, n) => ActivatorUtilities.CreateInstance <StreamPerPartitionDataAdapter>(s));
     });
 }