/// <summary>
 /// Initializes a new instance of the <see cref="Context" /> class.
 /// </summary>
 /// <param name="configuration">The configuration string.</param>
 /// <param name="serializer">The serializer.</param>
 /// <param name="log">The textwriter to use for logging purposes.</param>
 public Context(string configuration, ISerializer serializer, TextWriter log)
 {
     _internalContext = new RedisProviderContext(configuration, serializer, log);
     _collectionProvider = new RedisCollectionProvider(_internalContext);
     _cacheProvider = new RedisCacheProvider(_internalContext);
     _geoProvider = new RedisGeoProvider(_internalContext);
     _pubsubProvider = new RedisPubSubProvider(_internalContext);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisProviderBase" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public RedisPubSubProvider(RedisProviderContext context)
     : base(context)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisCollectionProvider"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="cacheProvider">The cache provider instance.</param>
 public RedisCollectionProvider(RedisProviderContext context, ICacheProvider cacheProvider)
     : base(context)
 {
     _cacheProvider = cacheProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisProviderBase"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 internal RedisProviderBase(RedisProviderContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisGeoProvider"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="cacheProvider">The cache provider.</param>
 public RedisGeoProvider(RedisProviderContext context, ICacheProvider cacheProvider)
     : base(context)
 {
     _cacheProvider = cacheProvider;
 }
Beispiel #6
0
 public RedisKeyEventsProvider(RedisProviderContext context) : base(context)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisCollectionProvider"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public RedisCollectionProvider(RedisProviderContext context)
     : base(context)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisGeoProvider"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public RedisGeoProvider(RedisProviderContext context)
     : base(context)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisProviderBase"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 internal RedisProviderBase(RedisProviderContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisCacheProvider"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public RedisCacheProvider(RedisProviderContext context)
     : base(context)
 {
 }
 public RedisKeyEventsProvider(RedisProviderContext context) : base(context) { }