Interface IAchievementCustomConditionResolver
Turns the type name a CustomCondition names into the project-supplied rule it
stands for.
Namespace: Serenity.Achievements.Application.Interfaces.Services
Assembly: Serenity.Achievements.Application.dll
Syntax
public interface IAchievementCustomConditionResolver
Remarks
A port rather than a direct Activator.CreateInstance call so the lookup stays the
composition edge's business: the Unity implementation resolves through reflection and hands
the instance whatever services it asks for, and a test hands back a stub without either.
Methods
TryResolve(string, out IAchievementCondition)
Attempts to resolve a project-supplied condition by type name.
Declaration
bool TryResolve(string typeName, out IAchievementCondition condition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeName | The type name authored on the condition node. |
| IAchievementCondition | condition | The resolved rule, when one was found. |
Returns
| Type | Description |
|---|---|
| bool | True when the type resolved to a usable rule; otherwise false. |