Exemplo n.º 1
0
 public ExpirationActionQueue(FluentNHibernateJobStorage storage, DateTime cutOffDate,
                              CancellationToken cancellationToken1)
 {
     _storage           = storage;
     _cancellationToken = cancellationToken1;
     _cutOffDate        = cutOffDate;
 }
        public static FluentNHibernateDistributedLock Acquire(FluentNHibernateJobStorage storage, string resource,
                                                              TimeSpan timeout,
                                                              CancellationToken?cancellationToken = null)
        {
            var tmp = new FluentNHibernateDistributedLock(storage, resource, timeout, cancellationToken);

            tmp.Initialize();
            return(tmp);
        }
Exemplo n.º 3
0
        public FluentNHibernateDistributedLock(FluentNHibernateJobStorage storage, string resource, TimeSpan timeout,
                                               CancellationToken?cancellationToken = null)
        {
            Logger.TraceFormat("{2} resource={0}, timeout={1}", resource, timeout, GetType().Name);

            _resource          = resource;
            _timeout           = timeout;
            _cancellationToken = cancellationToken ?? new CancellationToken();
            _storage           = storage;
        }
 public CountersAggregator(FluentNHibernateJobStorage storage, TimeSpan interval)
 {
     _storage  = storage ?? throw new ArgumentNullException("storage");
     _interval = interval;
 }
Exemplo n.º 5
0
 public ExpirationManager(FluentNHibernateJobStorage storage, TimeSpan checkInterval)
 {
     _storage       = storage ?? throw new ArgumentNullException("storage");
     _checkInterval = checkInterval;
 }
Exemplo n.º 6
0
 public ExpirationManager(FluentNHibernateJobStorage storage)
     : this(storage, TimeSpan.FromHours(1))
 {
 }
Exemplo n.º 7
0
 public ServerTimeSyncManager(FluentNHibernateJobStorage storage)
 {
     _storage = storage;
 }
 public FluentNHibernateJobStorageConnection(FluentNHibernateJobStorage storage)
 {
     Storage = storage ?? throw new ArgumentNullException("storage");
 }
 public FluentNHibernateWriteOnlyTransaction(FluentNHibernateJobStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException("storage");
 }
Exemplo n.º 10
0
 public ExpirationManager(FluentNHibernateJobStorage storage)
 {
     Storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
Exemplo n.º 11
0
 public ServerTimeSyncManager(FluentNHibernateJobStorage storage, TimeSpan checkInterval)
 {
     _storage       = storage;
     _checkInterval = checkInterval;
 }
 public CountersAggregator(FluentNHibernateJobStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
 public StatelessSessionWrapper(IStatelessSession session, FluentNHibernateJobStorage storage)
 {
     _session = session;
     Storage  = storage;
 }
 public FluentNHibernateJobStorageTestWrapper(FluentNHibernateJobStorage storage)
 {
     _storage = storage;
 }
Exemplo n.º 15
0
 public CountersAggregator(FluentNHibernateJobStorage storage)
 {
     _storage   = storage ?? throw new ArgumentNullException(nameof(storage));
     _tableName = _storage.GetTableName <_Counter>();
 }