Apq.Cfg.Apollo.ApolloCfgSource.ApplyChangesAsync(System.Collections.Generic.IReadOnlyDictionary_string,string_,System.Threading.CancellationToken).md 2.7 KB

Apq.Cfg.Apollo.ApolloCfgSource

ApolloCfgSource.ApplyChangesAsync(IReadOnlyDictionary<string,string>, CancellationToken) Method

应用配置更改(Apollo 不支持通过 API 写入配置)

public System.Threading.Tasks.Task ApplyChangesAsync(System.Collections.Generic.IReadOnlyDictionary<string,string?> changes, System.Threading.CancellationToken cancellationToken);

Parameters

changes System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

要应用的配置更改

cancellationToken System.Threading.CancellationToken

取消令牌

Implements ApplyChangesAsync(IReadOnlyDictionary<string,string>, CancellationToken)

Returns

System.Threading.Tasks.Task
表示异步操作的任务

Exceptions

System.NotSupportedException
始终抛出,因为 Apollo 不支持通过 API 写入配置