共用方式為


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 用戶端的建立器。

適用於