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));
        }
Exemplo n.º 2
0
        public async Task <IAsyncEnumerable <LocationReader> > Handle(GetLocationsQuery request, CancellationToken cancellationToken)
        {
            await RaiseLocationsQueriedEvent(request, cancellationToken);

            return(_locations.GetAll(cancellationToken));
        }