示例#1
0
        public static IGlobalConfiguration <ObjectRepositoryStorage> UseHangfireStorage(
            [NotNull] this IGlobalConfiguration configuration, ObjectRepositoryBase objectRepository)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            var storage = new ObjectRepositoryStorage(objectRepository);

            return(configuration.UseStorage(storage));
        }
示例#2
0
 public ObjectRepositoryWriteOnlyTransaction(ObjectRepositoryStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
 public ExpirationManager(ObjectRepositoryStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }
 public ObjectRepositoryMonitoringApi([NotNull] ObjectRepositoryStorage storage)
 {
     _storage    = storage;
     _repository = storage.ObjectRepository;
 }
示例#5
0
 public ObjectRepositoryConnection(ObjectRepositoryStorage storage)
 {
     _storage = storage ?? throw new ArgumentNullException(nameof(storage));
 }