private static void Inyection() { _services = new ServiceCollection(); _services.AddDbContext <Contexto>(); _services.AddTransient <IGenericRepository, GenericsRepository>(); _services.AddTransient <ILibroService, LibroService>(); _services.AddTransient <ILibroQuery, LibroQuery>(); libroService = _services.BuildServiceProvider().GetRequiredService <ILibroService>(); _services.AddTransient <IClienteService, ClienteService>(); _services.AddTransient <IClienteQuery, ClienteQuery>(); clienteService = _services.BuildServiceProvider().GetRequiredService <IClienteService>(); _services.AddTransient <IAlquileresService, AlquileresService>(); _services.AddTransient <IAlquileresQuery, AlquileresQuery>(); alquilerService = _services.BuildServiceProvider().GetRequiredService <IAlquileresService>(); }
public ProductoService(IProductoQuerying productoQuerying, IArticuloService articuloService, ICapituloService capituloService, ILibroService libroService, IReporteService reporteService, IResenaService resenaService, IObraTraducidaService obraTraducidaService, IProyectoService proyectoService, ICursoService cursoService, ITesisDirigidaService tesisDirigidaService, IDictamenService dictamenService, IOrganoExternoService organoExternoService, IEventoService eventoService, IParticipacionMedioService participacionMedioService) { this.productoQuerying = productoQuerying; this.articuloService = articuloService; this.capituloService = capituloService; this.libroService = libroService; this.reporteService = reporteService; this.resenaService = resenaService; this.obraTraducidaService = obraTraducidaService; this.proyectoService = proyectoService; this.cursoService = cursoService; this.tesisDirigidaService = tesisDirigidaService; this.dictamenService = dictamenService; this.organoExternoService = organoExternoService; this.eventoService = eventoService; this.participacionMedioService = participacionMedioService; }
public LibroController(ILibroService service) { libroService = service; }
public Manejador(ContextoMysql contexto, ILibroService libroService, IMapper mapper) { _contexto = contexto; _libroService = libroService; _mapper = mapper; }
public LibrosController(BibliotecaDbContext context, ILibroService service) { _context = context; _service = service; }
public LibroController(ILibroService libroService) { _libroService = libroService; }
public LibroController(ILogger <LibroController> logger, ILibroService libroService) { _libroService = libroService; }
public Handler(ContextoCarrito contexto, ILibroService libroService, IMapper mapper) { _contexto = contexto; _libroService = libroService; _mapper = mapper; }
public AutoresController(IAutorService autorService, ILibroService libroService) { _autorService = autorService; _libroService = libroService; }
public Manejador(ContextoCarrito contexto, ILibroService libroService) { this.contexto = contexto; this.libroService = libroService; }
public LibrosController(ILibroService service) { _service = service; }
public Manejador(CarritoContexto contexto, ILibroService service) { _contexto = contexto; _service = service; }