Skip to content

ChannelHostingExtensions Methods

Provides extension methods for configuring and resolving broadcast channel providers.

AddBroadcastChannel(IClientBuilder, string, Action<BroadcastChannelOptions>)

staticextension
View source
public static IClientBuilder AddBroadcastChannel(this IClientBuilder @this, string name, Action<BroadcastChannelOptions> configureOptions)
Add a new broadcast channel to the client.

Parameters

thisIClientBuilder
The builder.
namestring
The name of the provider
configureOptionsAction<BroadcastChannelOptions>
The configuration delegate.

Returns

The client builder.

AddBroadcastChannel(IClientBuilder, string, Action<OptionsBuilder<BroadcastChannelOptions>>)

staticextension
View source
public static IClientBuilder AddBroadcastChannel(this IClientBuilder @this, string name, Action<OptionsBuilder<BroadcastChannelOptions>>? configureOptions = null)
Add a new broadcast channel to the client.

Parameters

thisIClientBuilder
The builder.
namestring
The name of the provider
configureOptionsAction<OptionsBuilder<BroadcastChannelOptions>>
The configuration delegate.

Returns

The client builder.

AddBroadcastChannel(ISiloBuilder, string, Action<BroadcastChannelOptions>)

staticextension
View source
public static ISiloBuilder AddBroadcastChannel(this ISiloBuilder @this, string name, Action<BroadcastChannelOptions> configureOptions)
Add a new broadcast channel to the silo.

Parameters

thisISiloBuilder
The builder.
namestring
The name of the provider
configureOptionsAction<BroadcastChannelOptions>
The configuration delegate.

Returns

The silo builder.

AddBroadcastChannel(ISiloBuilder, string, Action<OptionsBuilder<BroadcastChannelOptions>>)

staticextension
View source
public static ISiloBuilder AddBroadcastChannel(this ISiloBuilder @this, string name, Action<OptionsBuilder<BroadcastChannelOptions>>? configureOptions = null)
Add a new broadcast channel to the silo.

Parameters

thisISiloBuilder
The builder.
namestring
The name of the provider
configureOptionsAction<OptionsBuilder<BroadcastChannelOptions>>
The configuration delegate.

Returns

The silo builder.

GetBroadcastChannelProvider(IClusterClient, string)

staticextension
View source
public static IBroadcastChannelProvider GetBroadcastChannelProvider(this IClusterClient @this, string name)
Gets a named broadcast channel provider.

Parameters

thisIClusterClient
The client.
namestring
The name of the provider

Returns

The named broadcast channel provider.