/// <summary> /// Initializes the File Service /// </summary> /// <param name="localPath">Path where the file service stores files</param> private void InitializeFileService(string localPath) { _fileServer = new FileStore(localPath); _fileServer.FileAdded += FileServerFileAdded; _fileServer.FileChanged += FileServerFileChanged; _fileServer.FileRemoved += FileServerFileRemoved; _fileServer.FileDownloadedFromCloud += FileServerFileDownloaded; Log.Out("ActivityManager", string.Format("FileStore initialized at {0}", _fileServer.BasePath), LogCode.Log); }
/// <summary> /// Initializes the File Service /// </summary> /// <param name="localPath">Path where the file service stores files</param> private void InitializeFileService(string localPath) { _fileStore = new FileStore(localPath); _fileStore.FileCopied += FileServerFileCopied; _fileStore.FileRemoved += FileStoreFileRemoved; _fileStore.FileAdded += FileStoreFileAdded; Log.Out("ActivityClient", string.Format("FileStore initialized at {0}", _fileStore.BasePath), LogCode.Log); }