Class RecipeSignalValidation
Validation helpers for signal DTOs, used by the menu/modal importers' report passes.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public static class RecipeSignalValidation
Methods
WarnUnresolved(SerenityRecipeImportContext, string, string, string, RecipeSignalDto)
Warns when signal names a type that cannot be resolved. Null/empty is silent.
Declaration
public static void WarnUnresolved(SerenityRecipeImportContext context, string section, string id, string ownerDescription, RecipeSignalDto signal)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityRecipeImportContext | context | |
| string | section | |
| string | id | |
| string | ownerDescription | |
| RecipeSignalDto | signal |
WarnUnresolved(SerenityRecipeImportContext, string, string, string, RecipeSignalDto[])
Warns (once per unresolved type) when any signal in signals names a type that cannot
be resolved. A resolvable type, an empty/whitespace type, and a null array are all silent.
Declaration
public static void WarnUnresolved(SerenityRecipeImportContext context, string section, string id, string ownerDescription, RecipeSignalDto[] signals)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityRecipeImportContext | context | The import context. |
| string | section | The recipe section name (for the report). |
| string | id | The owning asset id (for the report). |
| string | ownerDescription | Human-readable owner, e.g. |
| RecipeSignalDto[] | signals | The signals to check (may be null). |