public MongoSentUpdatesRepository( MongoApplicationDbContext context, MongoDbConfig config) { _collection = context.SentUpdates; if (!_collection.Indexes.List().Any()) // There shouldn't be more than one index in the collection { CreateExpirationIndex(config); } }
public MongoUserLatestUpdateTimesRepository(MongoApplicationDbContext context) { _collection = context.UserLatestUpdateTimes; }