Interface IQueryHandlerFactory<TData, TQueryHandler, TPayload>
Interface for query handler factories.
Namespace: UnityEditor.Search
Syntax
public interface IQueryHandlerFactory<TData, out TQueryHandler, TPayload>
where TQueryHandler : IQueryHandler<TData, TPayload> where TPayload : class
Type Parameters
Name | Description |
---|---|
TData | The filtered data type. |
TQueryHandler | The query handler type. |
TPayload | The payload type. |
Methods
Create(QueryGraph, ICollection<QueryError>)
Implement this function to create a new query handler for a specific query graph.
Declaration
TQueryHandler Create(QueryGraph graph, ICollection<QueryError> errors)
Parameters
Type | Name | Description |
---|---|---|
QueryGraph | graph | A graph representing a query. |
ICollection<QueryError> | errors | A collection of errors. Use this to report errors when needed. |
Returns
Type | Description |
---|---|
TQueryHandler | An object of type TQueryHandler. |