protected internal RedisCondition([NotNull] RedisContext context, [NotNull] ITransaction transaction) { Check.NotNull(context, nameof(context)); Check.NotNull(transaction, nameof(transaction)); _context = context; _transaction = transaction; }
public ForumDiscussion(RedisKey key, RedisEntryMetadata metadata, RedisContext context, RedisEntry parent) : base(key, metadata, context, parent) { }
public ForumComment(RedisKey key, RedisEntryMetadata metadata, RedisContext context, RedisEntry parent) : base(key, metadata, context, parent) { }
protected internal RedisBatch(RedisContext context) : base(context) { Batch = context.Database.Database.CreateBatch(); }
public RedisSet(RedisKey key, RedisEntryMetadata metadata, RedisContext context, RedisEntry parent) : base(key, metadata, context, parent) { }
public UserHelper(RedisContext redis) { this.redis = redis; }
protected internal RedisBatch(RedisContext context, IBatch batch) : base(context) { Check.NotNull(batch, nameof(batch)); Batch = batch; }
protected override CustomerAccount UpdateEntity(RedisContext entityContext, CustomerAccount entity) { throw new NotImplementedException(); }
protected override IEnumerable <CustomerAccount> GetEntities(RedisContext entityContext, string k) { throw new NotImplementedException(); }
public RedisSearchCache(IDataContext context) { Context = (RedisContext)context; }
public MoviesController() { context = new RedisContext(); }
public async static Task <Tuple <ChatRoom, User, ChatRoomConnectionPool> > BuildScenarioWithChatRoomAndUserWithPreviousConnectionPool(string chatRoomName, int activeConnectionsLimit, string userName, DBContext db, RedisContext redis) { var chatRoomConnectionPool = BuildChatRoomConnectionPoolWithFourUsers(); var newChatRoom = new ChatRoom { Id = chatRoomConnectionPool.ChatRoomId, Name = chatRoomName, ActiveConnectionsLimit = activeConnectionsLimit }; var newUser = new User { Name = userName }; // creates chat room with the same Id of the pool and a user await db.ChatRooms.AddAsync(newChatRoom); await db.Users.AddAsync(newUser); await db.SaveChangesAsync(); // creates a connection pool for the chat room await redis.SetKey(chatRoomConnectionPool.ChatRoomId, chatRoomConnectionPool, null); return(new Tuple <ChatRoom, User, ChatRoomConnectionPool>(newChatRoom, newUser, chatRoomConnectionPool)); }