Skip to content

Instantly share code, notes, and snippets.

@timsavery
Created October 26, 2012 15:13
Show Gist options
  • Save timsavery/3959349 to your computer and use it in GitHub Desktop.
Save timsavery/3959349 to your computer and use it in GitHub Desktop.
The Re-Factored Chatham.Libraries.Caching.TypedCache<T> Constructor
public class TypedCache<T> {
private readonly Chatham.Libraries.Stats.Api.IStatsClient _statsClient;
private readonly Chatham.Libraries.Caching.Api.ICacheClient _cacheClient;
public TypedCache(Chatham.Libraries.Stats.Api.IStatsClient statsClient, Chatham.Libraries.Caching.Api.ICacheClient cacheClient) {
this._statsClient = statsClient;
this._cacheClient = cacheClient;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment