Exemplo n.º 1
0
        public FileServer(MountHandler parent, string host, int port, string user, string pass)
        {
            Parent = parent;
            var fsFact   = new VirtualFsFactory(this);
            var mbFact   = new FixedMemberProvider(user, pass);
            var ass      = typeof(FtpServer).Assembly;
            var commands = new AssemblyFtpCommandHandlerFactory(ass);

            server = new FtpServer(fsFact, mbFact, host, port, commands);
            server.Start();
        }
Exemplo n.º 2
0
 public VirtualFileSystem(VirtualFsFactory parent, string userId)
 {
     Parent = parent;
     UserId = userId;
     Root   = new VirtualDirectory(this);
 }