Beispiel #1
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IMiInterface miInterface, IMiInterfaceGenerica <WeatherForecastController> miInterfaceGenerica, IConfiguration configuration) // <-- Inyecto un IConfiguration
 {
     _logger              = logger;
     _miInterface         = miInterface;
     _miInterfaceGenerica = miInterfaceGenerica;
     _configuration       = configuration; // <-- Encapsulo la inyecion
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IMiInterface miInterface, IMiInterfaceGenerica <WeatherForecastController> miInterfaceGenerica, IConfiguration configuration)
 {
     _logger              = logger;
     _miInterface         = miInterface;
     _miInterfaceGenerica = miInterfaceGenerica;
     _configuration       = configuration;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IMiInterface miInterface, IMiInterfaceGenerica <WeatherForecastController> miInterfaceGenerica)
 {
     _logger              = logger;
     _miInterface         = miInterface;
     _miInterfaceGenerica = miInterfaceGenerica;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IMiInterface miInterface, IMiInterfaceGenerica <WeatherForecastController> miInterfaceGenerica) //<--Pido las inyecciones
 {
     _logger              = logger;
     _miInterface         = miInterface; //<-- Las encapsulamos para usar en la clase.
     _miInterfaceGenerica = miInterfaceGenerica;
 }