Class UseEndpointBase<TArg, TResult>
Base class for variations of UseEndpoint. Do not use directly.
public abstract class UseEndpointBase<TArg, TResult> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TArg
TResult
- Inheritance
-
UseEndpointBase<TArg, TResult>
- Implements
- Derived
- Inherited Members
Properties
CurrentQuery
protected Query<TArg, TResult>? CurrentQuery { get; }
Property Value
- Query<TArg, TResult>
IsInitialized
protected bool IsInitialized { get; }
Property Value
Options
Additional options to use for this query.
[Parameter]
public QueryOptions<TArg, TResult>? Options { get; set; }
Property Value
- QueryOptions<TArg, TResult>
UseErrorBoundary
If set to true, any exceptions from the query will be re-thrown during rendering. This allows them to be caught by an ErrorBoundary further up the component hierarchy.
[Parameter]
public bool UseErrorBoundary { get; set; }
Property Value
Methods
CreateQuery(Endpoint<TArg, TResult>)
protected abstract Query<TArg, TResult> CreateQuery(Endpoint<TArg, TResult> endpoint)
Parameters
endpoint
Endpoint<TArg, TResult>
Returns
- Query<TArg, TResult>
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
OnInitialized()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
protected override void OnInitialized()
UpdateQuery()
protected void UpdateQuery()