/// <summary>
 /// Creates instance of this class.
 /// </summary>
 /// <param name="license">A license string.</param>
 /// <param name="userFileSystemRootPath">
 /// A root folder of your user file system. Your file system tree will be located under this folder.
 /// </param>
 /// <param name="log">Log4net logger.</param>
 /// <param name="settings">Virtual drive settings.</param>
 public VirtualDriveBase(string license, string userFileSystemRootPath, Settings settings, ILog log)
 {
     this.Settings          = settings;
     this.log               = log;
     Engine                 = new VfsEngine(license, userFileSystemRootPath, this, log);
     SyncService            = new FullSyncService(settings.SyncIntervalMs, userFileSystemRootPath, this, log);
     SyncService.SyncEvent += SyncService_SyncEvent;
     userFileSystemMonitor  = new UserFileSystemMonitor(userFileSystemRootPath, this, log);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates instance of this class.
        /// </summary>
        /// <param name="userFileSystemPath">File or folder path in the user file system.</param>
        /// <param name="logger">Logger.</param>
        public VfsFileSystemItem(string userFileSystemPath, ILogger logger, VfsEngine engine, VirtualDriveBase virtualDrive)
        {
            if (string.IsNullOrEmpty(userFileSystemPath))
            {
                throw new ArgumentNullException(nameof(userFileSystemPath));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            UserFileSystemPath = userFileSystemPath;
            Logger             = logger;
            Engine             = engine;
            VirtualDrive       = virtualDrive;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates instance of this class.
 /// </summary>
 /// <param name="path">File path in user file system.</param>
 /// <param name="logger">Logger.</param>
 public VfsFile(string path, ILogger logger, VfsEngine engine, VirtualDriveBase userEngine) : base(path, logger, engine, userEngine)
 {
 }
Ejemplo n.º 4
0
 public VfsFolder(string path, ILogger logger, VfsEngine engine, VirtualDriveBase virtualDrive) : base(path, logger, engine, virtualDrive)
 {
 }