public async Task <IAsyncEnumerable <LocationReader> > Handle(GetLocationsWithParametersQuery request, CancellationToken cancellationToken) { var locations = _locations.GetAll(cancellationToken); await RaiseLocationListQueriedEvent(request.Parameters, cancellationToken); return(Filter(locations, request.Parameters)); }
public async Task <IAsyncEnumerable <LocationReader> > Handle(GetLocationsQuery request, CancellationToken cancellationToken) { await RaiseLocationsQueriedEvent(request, cancellationToken); return(_locations.GetAll(cancellationToken)); }