public HomeController(IMemoryCache memCach, IDistributedCache cache, StateDataService stateDataService) { this.memChache = memCach; this.dcache = cache; this.stateDataService = stateDataService; }
public HomeController(IMemoryCache memoryCache, IDistributedCache distributedCache, StateDataService stateDataService) { this.memoryCache = memoryCache; this.distributedCache = distributedCache; this.stateDataService = stateDataService; }
public HomeController(IMemoryCache memCache, IDistributedCache disCache, StateDataService sDataService) { this._memCache = memCache; this._disCache = disCache; this._sDataService = sDataService; }
public string Index([FromServices] StateDataService sDataService) { return(sDataService.Data); }