Skip to content

ClientBuilderExtensions Methods

Extension methods for configuring Azure Event Hubs stream providers on an Orleans client.

AddEventHubStreams(IClientBuilder, string, Action<EventHubOptions>)

staticextension
View source
public static IClientBuilder AddEventHubStreams(this IClientBuilder builder, string name, Action<EventHubOptions> configureEventHub)
Adds a named Azure Event Hubs persistent stream provider to the client.

Parameters

builderIClientBuilder
The client builder.
namestring
The stream provider name.
configureEventHubAction<EventHubOptions>
The delegate used to configure the Event Hub connection.

Returns

The client builder.

AddEventHubStreams(IClientBuilder, string, Action<IClusterClientEventHubStreamConfigurator>)

staticextension
View source
public static IClientBuilder AddEventHubStreams(this IClientBuilder builder, string name, Action<IClusterClientEventHubStreamConfigurator> configure)
Adds a named Azure Event Hubs persistent stream provider to the client.

Parameters

builderIClientBuilder
The client builder.
namestring
The stream provider name.
configureAction<IClusterClientEventHubStreamConfigurator>
The delegate used to configure the stream provider.

Returns

The client builder.