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 (); }
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"); }