Esempio n. 1
0
        public TopicCache(IAmazonSimpleNotificationService client)
        {
            _client    = client;
            _cache     = new GreenCache <TopicInfo>(ClientContextCacheDefaults.GetCacheSettings());
            _nameIndex = _cache.AddIndex("entityName", x => x.EntityName);

            _durableTopics = new Dictionary <string, TopicInfo>();
        }
Esempio n. 2
0
        public QueueCache(IAmazonSQS client, CancellationToken cancellationToken)
        {
            _client            = client;
            _cancellationToken = cancellationToken;
            _cache             = new GreenCache <QueueInfo>(ClientContextCacheDefaults.GetCacheSettings());
            _nameIndex         = _cache.AddIndex("entityName", x => x.EntityName);

            _durableQueues = new Dictionary <string, QueueInfo>();
        }
Esempio n. 3
0
 public QueueCache(IAmazonSQS client)
 {
     _client    = client;
     _cache     = new GreenCache <QueueInfo>(ClientContextCacheDefaults.GetCacheSettings());
     _nameIndex = _cache.AddIndex("entityName", x => x.EntityName);
 }