Interface IDataSource
Interface for an object that receives updates to feature flags from LaunchDarkly.
Namespace: LaunchDarkly.Sdk.Client.Subsystems
Assembly: LaunchDarkly.ClientSdk.dll
Syntax
public interface IDataSource : IDisposable
Remarks
This component uses a push model. When it is created, the SDK will provide a reference to an IDataSourceUpdateSink component, which is a write-only abstraction of the data store. The SDK never requests feature flag data from the IDataSource, it only looks at the last known data that was previously put into the store.
Properties
Initialized
Checks whether the data source has finished initializing.
Declaration
bool Initialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if fully initialized |
Remarks
This is true if it has received at least one full set of feature flag data from LaunchDarkly, or if it is never going to do so because we are deliberately offline.
Methods
Start()
Initializes the data source. This is called once from the LdClient constructor.
Declaration
Task<bool> Start()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | a |