コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatorShareRedirectFSHelper"/> class.
 /// </summary>
 /// <param name="baseDir">The base dir.</param>
 /// <param name="pathFactory">The path factory.</param>
 public GatorShareRedirectFSHelper(ShadowDirPath baseDir, PathFactory
                                   pathFactory, FilesysManager fileManager, FilesysContext filesysContext) : base(baseDir.PathString)
 {
     _pathFactory    = pathFactory;
     _fileManager    = fileManager;
     _filesysContext = filesysContext;
     // Create the meta direcotry.
     Directory.CreateDirectory(_pathFactory.CreateShadowFullPath(
                                   new VirtualPath(Path.DirectorySeparatorChar.ToString()),
                                   PathFactory.FilesysOp.Read).PathString);
 }
コード例 #2
0
ファイル: RedirectFSHelper.cs プロジェクト: xujyan/hurricane
 /// <summary>
 /// Initializes a new instance of the <see cref="GatorShareRedirectFSHelper"/> class.
 /// </summary>
 /// <param name="baseDir">The base dir.</param>
 /// <param name="pathFactory">The path factory.</param>
 public GatorShareRedirectFSHelper(ShadowDirPath baseDir, PathFactory 
     pathFactory, FilesysManager fileManager, FilesysContext filesysContext)
     : base(baseDir.PathString)
 {
     _pathFactory = pathFactory;
       _fileManager = fileManager;
       _filesysContext = filesysContext;
       // Create the meta direcotry.
       Directory.CreateDirectory(_pathFactory.CreateShadowFullPath(
     new VirtualPath(Path.DirectorySeparatorChar.ToString()),
     PathFactory.FilesysOp.Read).PathString);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PathFactory"/> class.
 /// </summary>
 /// <param name="shadowDirPath">The shadow dir path.</param>
 public PathFactory(ShadowDirPath shadowDirPath)
 {
     _shadowDirPath = shadowDirPath.PathString;
 }
コード例 #4
0
ファイル: PathFactory.cs プロジェクト: xujyan/hurricane
 /// <summary>
 /// Initializes a new instance of the <see cref="PathFactory"/> class.
 /// </summary>
 /// <param name="shadowDirPath">The shadow dir path.</param>
 public PathFactory(ShadowDirPath shadowDirPath)
 {
     _shadowDirPath = shadowDirPath.PathString;
 }