Beispiel #1
0
 public string Run(string sessionId, params string[] args)
 {
     if (args.Count() > 1)
     {
         FileServiceSession.SetUser(sessionId, args[1]);
         VirtualFileSystem.SetPath(sessionId, "C:");
         return(FileServiceSession.GetUser(sessionId));
     }
     else
     {
         throw new FileServiceCommandExeption("Missed user name");
     }
 }
Beispiel #2
0
 public string Run(string sessionId, params string[] args)
 {
     VirtualFileSystem.SetPath(sessionId, args[0]);
     return("");
 }