Class RecipeIdentityRefusals
The recipe entries an identity merge left out rather than write: an entry claiming a Guid another element of the list already owns, and an entry whose fallback key names an element of another identity (RecipeIdentityConflict). DescribeRefusals(string, RecipeIdentityRefusals, RecipeIdentityRefusals) turns them into the run's warnings.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Importers
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public sealed class RecipeIdentityRefusals
Constructors
RecipeIdentityRefusals()
Declaration
public RecipeIdentityRefusals()
Properties
ClaimedGuids
Declaration
public IReadOnlyList<string> ClaimedGuids { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> | The Guid of each entry left out because another element of the list already owns it. |
Conflicts
Declaration
public IReadOnlyList<RecipeIdentityConflict> Conflicts { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<RecipeIdentityConflict> | Each entry left out because its fallback key names an element of another identity. |
Methods
AddRange(RecipeIdentityRefusals)
Adds every refusal other recorded.
Declaration
public void AddRange(RecipeIdentityRefusals other)
Parameters
| Type | Name | Description |
|---|---|---|
| RecipeIdentityRefusals | other |
RefuseClaimedGuid(string)
Records an entry left out for claiming guid, which another element owns.
Declaration
public void RefuseClaimedGuid(string guid)
Parameters
| Type | Name | Description |
|---|---|---|
| string | guid |
RefuseConflict(RecipeIdentityConflict)
Records an entry left out for conflict.
Declaration
public void RefuseConflict(RecipeIdentityConflict conflict)
Parameters
| Type | Name | Description |
|---|---|---|
| RecipeIdentityConflict | conflict |