Ejemplo n.º 1
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddPersistentStreams(StreamProviderName, TestEventHubStreamAdapterFactory.Create, b => b
                           .Configure <EventHubOptions>(ob => ob.Configure(options =>
     {
         options.ConfigureTestDefaults(EHPath, EHConsumerGroup);
     })))
     .ConfigureServices(services => services.TryAddSingleton <IEventHubDataAdapter, EventHubDataAdapter>());
 }
Ejemplo n.º 2
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddPersistentStreams <EventHubStreamOptions>(StreamProviderName, TestEventHubStreamAdapterFactory.Create,
                                                   options =>
     {
         options.ConnectionString = TestDefaultConfiguration.EventHubConnectionString;
         options.ConsumerGroup    = EHConsumerGroup;
         options.Path             = EHPath;
     });
 }
Ejemplo n.º 3
0
 public void Configure(IConfiguration configuration, IClientBuilder clientBuilder)
 {
     clientBuilder
     .AddPersistentStreams(StreamProviderName, StreamPerPartitionEventHubStreamAdapterFactory.Create, b => b
                           .Configure <EventHubOptions>(ob => ob.Configure(options =>
     {
         options.ConnectionString = TestDefaultConfiguration.EventHubConnectionString;
         options.ConsumerGroup    = EHConsumerGroup;
         options.Path             = EHPath;
     })));
 }