コード例 #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);
        }
コード例 #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;
        }
コード例 #4
0
 public CountersAggregator(FluentNHibernateJobStorage storage, TimeSpan interval)
 {
     _storage  = storage ?? throw new ArgumentNullException("storage");
     _interval = interval;
 }
コード例 #5
0
 public ExpirationManager(FluentNHibernateJobStorage storage, TimeSpan checkInterval)
 {
     _storage       = storage ?? throw new ArgumentNullException("storage");
     _checkInterval = checkInterval;
 }
コード例 #6
0
 public ExpirationManager(FluentNHibernateJobStorage storage)
     : this(storage, TimeSpan.FromHours(1))
 {
 }
コード例 #7
0
 public ServerTimeSyncManager(FluentNHibernateJobStorage storage)
 {
     _storage = storage;
 }
 public FluentNHibernateJobStorageConnection(FluentNHibernateJobStorage storage)
 {
     Storage = storage ?? throw new ArgumentNullException("storage");
 }
コード例 #9
0
 public FluentNHibernateWriteOnlyTransaction(FluentNHibernateJobStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException("storage");
 }
コード例 #10
0
 public ExpirationManager(FluentNHibernateJobStorage storage)
 {
     Storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
コード例 #11
0
 public ServerTimeSyncManager(FluentNHibernateJobStorage storage, TimeSpan checkInterval)
 {
     _storage       = storage;
     _checkInterval = checkInterval;
 }
コード例 #12
0
 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;
 }
コード例 #15
0
 public CountersAggregator(FluentNHibernateJobStorage storage)
 {
     _storage   = storage ?? throw new ArgumentNullException(nameof(storage));
     _tableName = _storage.GetTableName <_Counter>();
 }