Exemplo n.º 1
0
 public SftpVirtualFile(SftpVirtualPathProvider owningProvider, IVirtualDirectory directory, string name, DateTime? lastModified)
     : base(owningProvider, directory)
 {
     this.Provider = owningProvider;
     this._name = name;
     this._lastModified = lastModified ?? DateTime.MinValue;
     this.File = new Lazy<SftpFile>(() => _file ?? Provider.GetSftpFile(this.VirtualPath));
 }
Exemplo n.º 2
0
 public SftpVirtualFile(SftpVirtualPathProvider owningProvider, IVirtualDirectory directory, string name, DateTime?lastModified)
     : base(owningProvider, directory)
 {
     this.Provider      = owningProvider;
     this._name         = name;
     this._lastModified = lastModified ?? DateTime.MinValue;
     this.File          = new Lazy <SftpFile>(() => _file ?? Provider.GetSftpFile(this.VirtualPath));
 }
 public SftpVirtualDirectory(SftpVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory,
                             String name = null, DateTime?lastModified = null)
     : base(owningProvider, parentDirectory)
 {
     this.Provider = owningProvider;
     _name         = name;
     _lastModified = lastModified ?? DateTime.MinValue;
 }
Exemplo n.º 4
0
 public SftpVirtualDirectory(SftpVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory, 
     String name = null, DateTime? lastModified = null)
     : base(owningProvider, parentDirectory)
 {
     this.Provider = owningProvider;
     _name = name;
     _lastModified = lastModified ?? DateTime.MinValue;
 }
Exemplo n.º 5
0
 public SftpVirtualFile(SftpVirtualPathProvider owningProvider, IVirtualDirectory directory, SftpFile file)
     : this(owningProvider, directory, file.Name, file.LastWriteTime)
 {
     this.Provider = owningProvider;
     this._file    = file;
 }
 public void ShouldHaveConstructorWithPort()
 {
     var provider = new SftpVirtualPathProvider("127.0.0.1", 22, "test", "test");
 }
 public void ShouldBeDisposable()
 {
     var provider = new SftpVirtualPathProvider("127.0.0.1", "test", "test");
     provider.Dispose();
 }
Exemplo n.º 8
0
 public SftpVirtualFile(SftpVirtualPathProvider owningProvider, IVirtualDirectory directory, SftpFile file)
     : this(owningProvider, directory, file.Name, file.LastWriteTime)
 {
     this.Provider = owningProvider;
     this._file = file;
 }
 public SftpVirtualDirectory(SftpVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory, SftpFile file)
     : this(owningProvider, parentDirectory, file.Name, file.LastWriteTime)
 {
     File = file;
 }
Exemplo n.º 10
0
 public SftpVirtualDirectory(SftpVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory, SftpFile file)
     : this(owningProvider, parentDirectory, file.Name, file.LastWriteTime)
 {
     File = file;
 }