Exemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of <see cref="EngMonarchController"/> with dependencies injected.
        /// </summary>
        /// <param name="engmonarchRepository">A repository for managing the engmonarch.</param>
        /// <param name="logger">Logger implementation.</param>
        public EngMonarchController(IEngMonarchRepository engmonarchRepository,
                                    ILogger <EngMonarchController> logger,
                                    IConfiguration configuration,
                                    ETagRedisCache cache)
        {
            _engmonarchRepository = engmonarchRepository;
            _logger = logger;

            _connectionString = configuration.GetConnectionString("DefaultConnection");
            _cache            = cache;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of <see cref="EngMonarchV2Controller"/> with dependencies injected.
 /// </summary>
 /// <param name="engmonarchsRepository">A repository for managing the engmonarchs.</param>
 /// <param name="logger">Logger implementation.</param>
 public EngMonarchV2Controller(IEngMonarchRepository engmonarchsRepository, ILogger <EngMonarchV2Controller> logger)
 {
     _engmonarchsRepository = engmonarchsRepository;
     _logger = logger;
 }