Пример #1
0
 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);
 }
Пример #2
0
 public PersistedQueue(string name, DataStore store,
                       string connectionString, LocalOptions <T> localOptions = null)
 {
     LocalOptions = localOptions ?? new LocalOptions <T>();
     Configure(name, store, connectionString);
 }