Interface IDataSource
Interface for an object that receives updates to feature flags from LaunchDarkly.
Inherited Members
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
| Edit this page View SourceInitialized
Checks whether the data source has finished initializing.
Declaration
bool Initialized { get; }
Property Value
Type | Description |
---|---|
bool | 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
| Edit this page View SourceStart()
Initializes the data source. This is called once from the LdClient constructor.
Declaration
Task<bool> Start()
Returns
Type | Description |
---|---|
Task<bool> | a |