Пример #1
0
 /// <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);
 }
Пример #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)
 {
 }
Пример #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;
 }
Пример #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) { }