/// <summary>
        /// Creates instance of this class.
        /// </summary>
        /// <param name="userFileSystemPath">File or folder path in 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("userFileSystemPath");
            }

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

            UserFileSystemPath = userFileSystemPath;
            Logger             = logger;
            Engine             = engine;
            VirtualDrive       = virtualDrive;
        }
Example #2
0
 public VfsFolder(string path, ILogger logger, VfsEngine engine, VirtualDriveBase userEngine) : base(path, logger, engine, userEngine)
 {
 }
 /// <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="syncIntervalMs">Full synchronization interval in milliseconds.</param>
 public VirtualDriveBase(string license, string userFileSystemRootPath, ILog log, double syncIntervalMs)
 {
     engine                = new VfsEngine(license, userFileSystemRootPath, this, log);
     SyncService           = new FullSyncService(syncIntervalMs, userFileSystemRootPath, this, log);
     userFileSystemMonitor = new UserFileSystemMonitor(userFileSystemRootPath, this, log);
 }