Struct DataStoreTypes.KeyedItems<TDescriptor>
Wrapper for a set of storable items being passed to a data store, within a single DataStoreTypes.DataKind.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public struct DataStoreTypes.KeyedItems<TDescriptor>
Type Parameters
Name | Description |
---|---|
TDescriptor |
Remarks
This type exists only to provide a simpler type signature for data store methods, and to make it easier to see what the type represents. In particular, unlike an IDictionary<TKey, TValue>, the ordering of items may be significant (in the case of updates).
Constructors
| Edit this page View SourceKeyedItems(IEnumerable<KeyValuePair<string, TDescriptor>>)
Constructs an instance of this wrapper type.
Declaration
public KeyedItems(IEnumerable<KeyValuePair<string, TDescriptor>> items)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, TDescriptor>> | items | the data set |
Properties
| Edit this page View SourceItems
The wrapped data set; may be empty, but will not be null.
Declaration
public IEnumerable<KeyValuePair<string, TDescriptor>> Items { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<string, TDescriptor>> |
Methods
| Edit this page View SourceEmpty()
Shortcut for constructing an empty data set.
Declaration
public static DataStoreTypes.KeyedItems<TDescriptor> Empty()
Returns
Type | Description |
---|---|
DataStoreTypes.KeyedItems<TDescriptor> | an instance containing no data |