IClientBuilder 接口

定义

用于配置 Orleans 客户端的生成器。

public interface IClientBuilder
type IClientBuilder = interface
Public Interface IClientBuilder
派生

属性

Configuration

获取配置。

Services

获取服务集合。

扩展方法

UseAdoNetClustering(IClientBuilder, Action<OptionsBuilder<AdoNetClusteringClientOptions>>)

将此客户端配置为使用 ADO.NET 进行群集。 http://aka.ms/orleans-sql-scripts提供了有关配置数据库的说明。

UseAdoNetClustering(IClientBuilder, Action<AdoNetClusteringClientOptions>)

将此客户端配置为使用 ADO.NET 进行群集。 http://aka.ms/orleans-sql-scripts提供了有关配置数据库的说明。

UseDynamoDBClustering(IClientBuilder, Action<OptionsBuilder<DynamoDBGatewayOptions>>)

将客户端配置为使用 DynamoDB 进行群集。

UseDynamoDBClustering(IClientBuilder, Action<DynamoDBGatewayOptions>)

将客户端配置为使用 DynamoDB 进行群集。

UseAzureStorageClustering(IClientBuilder, Action<OptionsBuilder<AzureStorageGatewayOptions>>)

将客户端配置为使用 Azure 存储进行群集。

UseAzureStorageClustering(IClientBuilder, Action<AzureStorageGatewayOptions>)

将客户端配置为使用 Azure 存储进行群集。

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

将新的广播频道添加到客户端。

AddBroadcastChannel(IClientBuilder, String, Action<BroadcastChannelOptions>)

将新的广播频道添加到客户端。

AddActivityPropagation(IClientBuilder)

通过粒度调用添加 Current 传播。 注意:仅当活动的任何侦听器 HasListeners() 存在并且 Sample 返回 PropagationData时,才会创建 StartActivity(String, ActivityKind) 活动。

AddAzureQueueStreams(IClientBuilder, String, Action<OptionsBuilder<AzureQueueOptions>>)

将群集客户端配置为使用 Azure 队列持久性流。

AddAzureQueueStreams(IClientBuilder, String, Action<ClusterClientAzureQueueStreamConfigurator>)

将群集客户端配置为使用 Azure 队列持久性流。

AddClusterConnectionLostHandler(IClientBuilder, ConnectionToClusterLostHandler)

注册 ConnectionToClusterLostHandler 事件处理程序。

AddEventHubStreams(IClientBuilder, String, Action<EventHubOptions>)

将群集客户端配置为使用具有默认设置的事件中心永久性流。

AddEventHubStreams(IClientBuilder, String, Action<IClusterClientEventHubStreamConfigurator>)

将群集客户端配置为使用事件中心持久性流。

AddGatewayCountChangedHandler(IClientBuilder, GatewayCountChangedHandler)

注册 GatewayCountChangedHandler 事件处理程序。

AddSqsStreams(IClientBuilder, String, Action<SqsOptions>)

将群集客户端配置为使用具有默认设置的 SQS 持久性流

AddSqsStreams(IClientBuilder, String, Action<ClusterClientSqsStreamConfigurator>)

将群集客户端配置为使用 SQS 持久性流。

Configure<TOptions>(IClientBuilder, IConfiguration)

注册 TOptions 将绑定到的配置实例。

Configure<TOptions>(IClientBuilder, Action<TOptions>)

注册用于配置特定类型的选项的操作。

ConfigureServices(IClientBuilder, Action<IServiceCollection>)

将服务添加到容器。 这可以多次调用,结果将累加。

UseConnectionRetryFilter(IClientBuilder, IClientConnectionRetryFilter)

将提供的委托配置为连接重试筛选器,用于确定故障后是否应重试与 Orleans 群集的初始连接。

UseConnectionRetryFilter(IClientBuilder, Func<Exception,CancellationToken,Task<Boolean>>)

将提供的委托配置为连接重试筛选器,用于确定故障后是否应重试与 Orleans 群集的初始连接。

UseConnectionRetryFilter<TConnectionRetryFilter>(IClientBuilder)

将提供的 TConnectionRetryFilter 类型配置为连接重试筛选器,用于确定故障后是否应重试与 Orleans 群集的初始连接。

UseLocalhostClustering(IClientBuilder, Int32, String, String)

将客户端配置为连接到 localhost 上的孤岛。

UseLocalhostClustering(IClientBuilder, Int32[], String, String)

将客户端配置为连接到 localhost 上的孤岛。

UseStaticClustering(IClientBuilder, Action<OptionsBuilder<StaticGatewayListProviderOptions>>)

将客户端配置为使用静态群集。

UseStaticClustering(IClientBuilder, Action<StaticGatewayListProviderOptions>)

将客户端配置为使用静态群集。

UseStaticClustering(IClientBuilder, IPEndPoint[])

将客户端配置为使用静态群集。

UseTransactions(IClientBuilder)

用于配置 Orleans 客户端的生成器。

AddIncomingGrainCallFilter(IClientBuilder, IIncomingGrainCallFilter)

IIncomingGrainCallFilter 添加到筛选器管道。

AddIncomingGrainCallFilter(IClientBuilder, IncomingGrainCallFilterDelegate)

通过委托将 IIncomingGrainCallFilter 添加到筛选器管道。

AddIncomingGrainCallFilter<TImplementation>(IClientBuilder)

IIncomingGrainCallFilter 添加到筛选器管道。

AddOutgoingGrainCallFilter(IClientBuilder, IOutgoingGrainCallFilter)

IOutgoingGrainCallFilter 添加到筛选器管道。

AddOutgoingGrainCallFilter(IClientBuilder, OutgoingGrainCallFilterDelegate)

通过委托将 IOutgoingGrainCallFilter 添加到筛选器管道。

AddOutgoingGrainCallFilter<TImplementation>(IClientBuilder)

IOutgoingGrainCallFilter 添加到筛选器管道。

AddMemoryStreams(IClientBuilder, String, Action<IClusterClientMemoryStreamConfigurator>)

使用默认消息序列化程序(DefaultMemoryMessageBodySerializer)将新的内存中流提供程序添加到客户端。

AddMemoryStreams<TSerializer>(IClientBuilder, String, Action<IClusterClientMemoryStreamConfigurator>)

将新的内存中流提供程序添加到客户端。

AddPersistentStreams(IClientBuilder, String, Func<IServiceProvider,String,IQueueAdapterFactory>, Action<IClusterClientPersistentStreamConfigurator>)

将新的持久性流提供程序添加到客户端。

AddStreaming(IClientBuilder)

添加对此客户端的流式处理的支持。

UseConsulClientClustering(IClientBuilder, Action<OptionsBuilder<ConsulClusteringOptions>>)

将客户端配置为使用 Consul 进行群集。

UseConsulClientClustering(IClientBuilder, Action<ConsulClusteringOptions>)

将客户端配置为使用 Consul 进行群集。

UseTls(IClientBuilder, Action<TlsOptions>)

配置 TLS。

UseTls(IClientBuilder, StoreName, String, Boolean, StoreLocation, Action<TlsOptions>)

配置 TLS。

UseTls(IClientBuilder, X509Certificate2)

配置 TLS。

UseTls(IClientBuilder, X509Certificate2, Action<TlsOptions>)

配置 TLS。

AddStreamFilter<T>(IClientBuilder, String)

添加流筛选器。

UseZooKeeperClustering(IClientBuilder, Action<OptionsBuilder<ZooKeeperGatewayListProviderOptions>>)

将客户端配置为使用 ZooKeeper 进行群集。

UseZooKeeperClustering(IClientBuilder, Action<ZooKeeperGatewayListProviderOptions>)

将客户端配置为使用 ZooKeeper 进行群集。

UseUnixSocketConnection(IClientBuilder)

用于配置 Orleans 客户端的生成器。

适用于