Пример #1
0
 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>();
 }
Пример #2
0
 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;
 }
Пример #4
0
 public Manejador(ContextoMysql contexto, ILibroService libroService, IMapper mapper)
 {
     _contexto     = contexto;
     _libroService = libroService;
     _mapper       = mapper;
 }
Пример #5
0
 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;
 }
Пример #8
0
 public Handler(ContextoCarrito contexto, ILibroService libroService, IMapper mapper)
 {
     _contexto     = contexto;
     _libroService = libroService;
     _mapper       = mapper;
 }
Пример #9
0
 public AutoresController(IAutorService autorService, ILibroService libroService)
 {
     _autorService = autorService;
     _libroService = libroService;
 }
Пример #10
0
 public Manejador(ContextoCarrito contexto, ILibroService libroService)
 {
     this.contexto     = contexto;
     this.libroService = libroService;
 }
Пример #11
0
 public LibrosController(ILibroService service)
 {
     _service = service;
 }
 public Manejador(CarritoContexto contexto, ILibroService service)
 {
     _contexto = contexto;
     _service  = service;
 }