Table of Contents

Interface IRemoteConfigSource

Namespace
JD.AI.Core.Config
Assembly
JD.AI.Core.dll

Abstraction for retrieving configuration from a remote source. Implementations may connect to Consul, Azure App Configuration, Kubernetes ConfigMaps, or any HTTP-based config service.

public interface IRemoteConfigSource

Properties

Name

Human-readable name of this config source (e.g. "consul", "http", "k8s-configmap").

string Name { get; }

Property Value

string

Methods

FetchAsync(CancellationToken)

Fetches the current configuration content from the remote source. Returns null if the source is unreachable or has no content.

Task<RemoteConfigResult?> FetchAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task<RemoteConfigResult>