예제 #1
0
 public void Connect(string user, string password)
 {
     conn = new Connection (new IPEndPoint (IPAddress.Parse ("127.0.0.1"), 9001));
     conn.Connect (true);
     logger.Info ("Connected", user, password);
     new Thread (() => {
         VFSConsumer c = new FUSEConsumer ();
         AppDomain.CurrentDomain.ProcessExit += (s, e) => {
             logger.Debug ("Process exiting");
             c.Stop ();
         };
         c.Start (new NetProvider (conn), opts);
         logger.Debug ("Finished");
     }).Start ();
 }
예제 #2
0
파일: Program.cs 프로젝트: TimePath/major
 public static void Main(string[] args)
 {
     logger.Info ("Starting");
     VFSConsumer c = new FUSEConsumer ();
     AppDomain.CurrentDomain.ProcessExit += (s, e) => {
         logger.Debug ("Process exiting");
         c.Stop ();
     };
     c.Start (new MemoryProvider (), new MountOptions {
         VolumeLabel = "Dokan",
         //MountPoint = "f:\\",
         MountPoint = Environment.GetEnvironmentVariable ("HOME") + "/mnt/test1",
         FileSystemName = "Virtual",
         RemovableDrive = true
     });
     logger.Info ("Finished");
 }