Exemplo n.º 1
0
 public PingService(ILogger <PingService> logger, ICachingClient cacheClient)
     : base(nameof(PingService), 1000, logger)
 {
     _cacheClient = cacheClient;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Defines endpoint to search for starwars planet information.
 /// </summary>
 /// <param name="client">A client caching previous made request for performance improvements.</param>
 public PlanetsController(ICachingClient client)
 {
     _client = client;
 }