public async Task <IEnumerable <Speaker>?> GetSpeakersAsync( SpeakerBySessionIdDataLoader speakerBySessionId, CancellationToken cancellationToken) { if (Session is null) { return(null); } return(await speakerBySessionId.LoadAsync(Session.Id, cancellationToken)); }
public async Task <IEnumerable <Speaker> > GetSpeakersAsync( [Parent] Session session, SpeakerBySessionIdDataLoader speakerById, CancellationToken cancellationToken) => await speakerById.LoadAsync(session.Id, cancellationToken);