Example #1
0
 public MailruStoreCollection(IHttpContext context, ILockingManager lockingManager, Folder directoryInfo, bool isWritable)
 {
     LockingManager = lockingManager;
     _context       = context;
     _directoryInfo = directoryInfo;
     IsWritable     = isWritable;
 }
Example #2
0
        public LocalStore(bool isWritable = true, ILockingManager lockingManager = null, Func <string, bool> isEnabledPropFunc = null)
        {
            LockingManager = lockingManager ?? new EmptyLockingManager(); //new InMemoryLockingManager();
            IsWritable     = isWritable;

            CollectionPropertyManager = new  PropertyManager <LocalStoreCollection>(new LocalStoreCollectionProps <LocalStoreCollection>(isEnabledPropFunc).Props);
            ItemPropertyManager       = new  PropertyManager <LocalStoreItem>(new LocalStoreItemProps <LocalStoreItem>(isEnabledPropFunc).Props);
        }
Example #3
0
 public UnitOfWorkWritable(IResolveManager resolveManager, PtvDbContext dbContext, IUserIdentification userIdentification, ILogger <UnitOfWorkWritable> logger, ApplicationConfiguration applicationConfiguration, ILockingManager lockingManager, IRoleChecker roleChecker, ITranslationCloneCache translationCloneCache) : base(resolveManager, dbContext)
 {
     this.userIdentification       = userIdentification;
     this.logger                   = logger;
     this.applicationConfiguration = applicationConfiguration;
     this.lockingManager           = lockingManager;
     this.roleChecker              = roleChecker;
     this.translationCloneCache    = translationCloneCache;
 }
Example #4
0
        public DiskStore(string directory, bool isWritable = true, ILockingManager lockingManager = null)
        {
            if (directory == null)
            {
                throw new ArgumentNullException(nameof(directory));
            }

            BaseDirectory  = directory;
            LockingManager = lockingManager ?? new InMemoryLockingManager();
        }
Example #5
0
 public ServiceUtilities(
     IUserIdentification userIdentification,
     ILockingManager lockingManager,
     IContextManager contextManager,
     IUserOrganizationService userOrganizationService,
     IVersioningManager versioningManager,
     IUserInfoService userInfoService,
     IUserOrganizationChecker userOrganizationChecker)
 {
     this.userIdentification      = userIdentification;
     this.lockingManager          = lockingManager;
     this.contextManager          = contextManager;
     this.userOrganizationService = userOrganizationService;
     this.versioningManager       = versioningManager;
     this.userInfoService         = userInfoService;
     this.userOrganizationChecker = userOrganizationChecker;
 }
Example #6
0
 public LocalStoreItem(ILockingManager lockingManager, File fileInfo, bool isWritable)
 {
     LockingManager = lockingManager;
     _fileInfo      = fileInfo;
     IsWritable     = isWritable;
 }
 public MailruStore(bool isWritable = true, ILockingManager lockingManager = null)
 {
     LockingManager = lockingManager ?? new InMemoryLockingManager();
     IsWritable     = isWritable;
 }
Example #8
0
 public DiskStoreCollection(ILockingManager lockingManager, DirectoryInfo directoryInfo, bool isWritable)
 {
     LockingManager = lockingManager;
     _directoryInfo = directoryInfo;
     IsWritable     = isWritable;
 }
 public MailruStoreItem(ILockingManager lockingManager, MailRuCloudApi.File fileInfo, bool isWritable)
 {
     LockingManager = lockingManager;
     _fileInfo      = fileInfo;
     IsWritable     = isWritable;
 }
 public MailruStoreCollection(ILockingManager lockingManager, Folder directoryInfo, bool isWritable)
 {
     LockingManager = lockingManager;
     _directoryInfo = directoryInfo;
     IsWritable     = isWritable;
 }