MixingRecipe

References
public sealed class MixingRecipe : IStorable
An immutable collection of input/output metadata mixing relations using Parameter IDs.

Constructors

MixingRecipe

#
public MixingRecipe()
Create an empty inheritance map.

MixingRecipe

#
public MixingRecipe(IDictionary<Guid, Guid[]> map)
Create an inheritance map from a generic dictionary collection.
map (IDictionary<Guid, Guid[]>)

MixingRecipe

#
public MixingRecipe(ImmutableDictionary<Guid, Guid[]> map)
Create an inheritance map from a pre-existing immutable dictionary.
map (ImmutableDictionary<Guid, Guid[]>)

Methods

CreateDefaultRecipe

#
public static MixingRecipe CreateDefaultRecipe(ComponentParameters parameters)
Create the default recipe.
parameters (ComponentParameters)

CreateEmptyRecipe

#
public static MixingRecipe CreateEmptyRecipe(ComponentParameters parameters)
Create an empty recipe.
parameters (ComponentParameters)

CreateFullRecipe

#
public static MixingRecipe CreateFullRecipe(ComponentParameters parameters)
Create a full recipe.
parameters (ComponentParameters)

Exclude

#
public MixingRecipe Exclude(Guid source, Guid target)
Remove a mixing relation from this map.
source (Guid)Parent instance Id.
target (Guid)Child instance Id.
Modified map.
Explicit

IStorable.Store

#
void IStorable.Store(IWriter writer)
writer (IWriter)
Store

Include

#
public MixingRecipe Include(Guid source, Guid target)
Add a mixing relation to this map.
source (Guid)Parent instance Id.
target (Guid)Child instance Id.
Modified map.

ModifyIds

#
public MixingRecipe ModifyIds(Dictionary<Guid, Guid> map)
Modify this inheritance map to account for instance ID changes.
map (Dictionary<Guid, Guid>)

Sources

#
public Guid[] Sources(Guid target)
Gets the array of parent IDs for a given child ID.
target (Guid)
Array of parents or null.