Class DataSourceStatusExtensions
Extension helper methods for use with data source status types.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Interfaces
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public static class DataSourceStatusExtensions
Methods
| Edit this page View SourceIdentifier(DataSourceState)
Returns a standardized string identifier for a DataSourceState.
Declaration
public static string Identifier(this DataSourceState state)
Parameters
Type | Name | Description |
---|---|---|
DataSourceState | state | a state value |
Returns
Type | Description |
---|---|
string | a string identifier |
Remarks
These Java-style uppercase identifiers (INITIALIZING
, VALID
, etc.) may be used in
logging for consistency across SDKs.
Identifier(ErrorKind)
Returns a standardized string identifier for a DataSourceStatus.ErrorKind.
Declaration
public static string Identifier(this DataSourceStatus.ErrorKind errorKind)
Parameters
Type | Name | Description |
---|---|---|
DataSourceStatus.ErrorKind | errorKind | an error kind value |
Returns
Type | Description |
---|---|
string | a string identifier |
Remarks
These Java-style uppercase identifiers (ERROR_RESPONSE
, NETWORK_ERROR
, etc.) may be
used in logging for consistency across SDKs.