Exemple #1
0
        public async Task <IEnumerable <Speaker>?> GetSpeakersAsync(
            SpeakerBySessionIdDataLoader speakerBySessionId,
            CancellationToken cancellationToken)
        {
            if (Session is null)
            {
                return(null);
            }

            return(await speakerBySessionId.LoadAsync(Session.Id, cancellationToken));
        }
Exemple #2
0
 public async Task <IEnumerable <Speaker> > GetSpeakersAsync(
     [Parent] Session session,
     SpeakerBySessionIdDataLoader speakerById,
     CancellationToken cancellationToken)
 => await speakerById.LoadAsync(session.Id, cancellationToken);