Class UnityFeedbackDefinitionProvider
Unity implementation of IFeedbackDefinitionProvider. Resolves FeedbackDefinition ScriptableObjects by Id or Guid via UnityAssetUtils (Addressables / Resources), then maps them to DTOs.
Implements
Inherited Members
Namespace: Serenity.Feedback.Infrastructure.Services
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public class UnityFeedbackDefinitionProvider : IFeedbackDefinitionProvider
Constructors
UnityFeedbackDefinitionProvider(ILogService)
Initializes the provider.
Declaration
public UnityFeedbackDefinitionProvider(ILogService logService = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogService | logService | Where the collection load writes the shipped definitions it dropped in favour of the project's adopted twins. Null loads silently. |
Methods
TryGet(string, out FeedbackDefinitionData)
Attempts to find a FeedbackDefinition asset whose Id matches the given id string, then converts it to a FeedbackDefinitionData DTO.
Declaration
public bool TryGet(string id, out FeedbackDefinitionData definition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The definition Id string to look up. |
| FeedbackDefinitionData | definition | The resolved DTO when found; default when not found. |
Returns
| Type | Description |
|---|---|
| bool | True when the definition was located and mapped successfully. |