public UserContentService( UserContentRepository <TUserContent, TUserContentDTO> userContentRepository, ICacheRefresher cacheRefresher) { _userRepo = userContentRepository; _cacheRefresher = cacheRefresher; }
internal UserContentInstance(DatabaseContext databaseContext, string tableName, ICacheRefresher refresher, IRuntimeCacheProvider cacheProvider) { Repository = new UserContentRepository <TUserContent, TUserContentDTO>(databaseContext, tableName); Service = new UserContentService <TUserContent, TUserContentDTO>( (UserContentRepository <TUserContent, TUserContentDTO>)Repository, refresher); Cache = cacheProvider; }
public UserContentController(UserContentRepository repo) { _repo = repo; }