ConsulClusteringOptions.ConfigureConsulClient 方法

定义

重载

ConfigureConsulClient(Func<IConsulClient>)

CreateClient使用提供的回调配置 。

ConfigureConsulClient(Uri, String)

CreateClient使用 consul-address 和 acl-token 配置 。

ConfigureConsulClient(Func<IConsulClient>)

Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs

CreateClient使用提供的回调配置 。

public void ConfigureConsulClient (Func<Consul.IConsulClient> createClientCallback);
member this.ConfigureConsulClient : Func<Consul.IConsulClient> -> unit
Public Sub ConfigureConsulClient (createClientCallback As Func(Of IConsulClient))

参数

createClientCallback
Func<Consul.IConsulClient>

适用于

ConfigureConsulClient(Uri, String)

Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs
Source:
ConsulClusteringOptions.cs

CreateClient使用 consul-address 和 acl-token 配置 。

public void ConfigureConsulClient (Uri address, string aclClientToken = default);
member this.ConfigureConsulClient : Uri * string -> unit
Public Sub ConfigureConsulClient (address As Uri, Optional aclClientToken As String = Nothing)

参数

address
Uri
aclClientToken
String

适用于