public MyServicesModel(IServiceQuery serviceQuery, IPlansQuery plansQuery, ICustomersQuery customersQuery, IClientsOpinionQuery clientsOpinionQuery) { _clientsOpinionQuery = clientsOpinionQuery; _customersQuery = customersQuery; _serviceQuery = serviceQuery; _plansQuery = plansQuery; }
public GrpcQuery(IServiceQuery serviceQuery, ITracingQuery tracingQuery, IMapper mapper, ILogger <GrpcQuery> logger) { _ServiceQuery = serviceQuery; _TracingQuery = tracingQuery; _Mapper = mapper; _Logger = logger; }
public async Task <IEnumerable <string> > Get([FromServices] IServiceQuery query) { var services = await query.GetServices(new TimeRangeQuery()); return(services.Select(x => x.Name)); }