public async Task <Component> GetDefinitionAsync( [Parent] ApplicationPartComponent applicationPartComponent, ComponentByIdDataLoader componentById, CancellationToken cancellationToken) => (await componentById.LoadAsync( applicationPartComponent.ComponentId, cancellationToken)) !;
public Task <Component?> GetComponentByIdAsync( [ID(nameof(Component))] Guid id, ComponentByIdDataLoader componentById, CancellationToken cancellationToken) => componentById.LoadAsync(id, cancellationToken);
public static async Task <Component?> GetComponentAsync( Guid id, ComponentByIdDataLoader componentById, CancellationToken cancellationToken) => await componentById.LoadAsync(id, cancellationToken);