public InMemoryMessageInbox(IMemoryCache cache, InboxOptions options, ILogger <InMemoryMessageInbox> logger) { _cache = cache; _logger = logger; _enabled = options.Enabled; _expiry = options.ExpirySeconds; }
public MongoMessageInbox(IMongoDatabase database, IMongoClient client, InboxOptions options, ILogger <MongoMessageInbox> logger) { _database = database; _client = client; _logger = logger; _enabled = options.Enabled; }
public RedisMessageInbox(IDistributedCache cache, InboxOptions inboxOptions, RedisOptions redisOptions, ILogger <RedisMessageInbox> logger) { if (string.IsNullOrWhiteSpace(redisOptions.Instance)) { throw new ArgumentException("Redis instance cannot be empty.", nameof(redisOptions.Instance)); } _cache = cache; _logger = logger; _enabled = inboxOptions.Enabled; _expiry = inboxOptions.ExpirySeconds; _instance = redisOptions.Instance; }
public MongoInboxInitializer(IMongoDatabase database, InboxOptions options) { _database = database; _options = options; }