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(); }
public VirtualFileSystem(VirtualFsFactory parent, string userId) { Parent = parent; UserId = userId; Root = new VirtualDirectory(this); }