Ejemplo n.º 1
0
 /// <summary>
 ///     Redis客户端
 /// </summary>
 /// <param name="redisConnection">上下文数据库连接信息</param>
 public RedisClient(Connection redisConnection)
 {
     _redisConnection = redisConnection;
 }
 /// <summary>
 ///     上下文初始化器(只赋值,不初始化,有可能被重复创建两次)
 /// </summary>
 /// <param name="contextType">外部上下文类型</param>
 /// <param name="redisConnection">上下文数据库连接信息</param>
 public InternalContext(Type contextType, Connection redisConnection)
 {
     this.ContextType = contextType;
     this._redisConnection = redisConnection;
 }