public PersistedQueue(string name, Context context, LocalOptions <T> localOptions = null) { LocalOptions = localOptions ?? new LocalOptions <T>(); _session = new SessionBase(context); _queueRepository = new Repository <Queue>(_session); _queueItemRepository = new Repository <QueueItem>(_session); CreateQueue(name); }
public PersistedQueue(string name, DataStore store, string connectionString, LocalOptions <T> localOptions = null) { LocalOptions = localOptions ?? new LocalOptions <T>(); Configure(name, store, connectionString); }