Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Discovery API Sample");

            Console.WriteLine("====================");
            string[] st   = { "" };
            string[] test = { @"\sdasd", @"\Serc\ram.kp", @"\Serc\ram.kp?", @"\Serc\ram.kp!q=9088&go=!9088", @"\Serc\ram.kp!gp=4343&yu=997887", @"\Serc\ram.kp!", @"\Serc\ram.kp!", "Ram!", "Ramkimaa.jpg!", "Ramkimaa.jpg!q=0", "Ramkimaa.jpg!q90", "Ramkimaa.jpg!S=09009&sss=990790HAJKSJK" };
            try
            {
                /*      foreach (string t in test)
                 *   {
                 *       Console.WriteLine("\n==========={0}==============",t);
                 *       NodeRsolver.VNode s = new NodeRsolver.VNode(t, ref st);
                 *       Console.WriteLine("{0} {1} {2} {3}",s.isFile ,s.isValid, s.fileExtention, s.fileName);
                 *       foreach (string key in s.param.Keys)
                 *       {
                 *           Console.WriteLine("{0}  {1}", key, s.param[key]);
                 *       }
                 *   }
                 *
                 *
                 *   Task<Google.Apis.Customsearch.v1.Data.Search> ret =SearchGoogle("YOgender");
                 *   ret.Wait();
                 *   foreach (Google.Apis.Customsearch.v1.Data.Result s in ret.Result.Items)
                 *   {
                 *       Console.WriteLine("{0}-{1}",s.Snippet,s.HtmlFormattedUrl);
                 *   }    */
                DokanNative native = new DokanNative(new RestFS(), 10, "O", "REST", "REST");
                native.StartDokan();
            }
            catch (AggregateException ex)
            {
                foreach (var e in ex.InnerExceptions)
                {
                    Console.WriteLine("ERROR: " + e.Message);
                }
            }
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            DokanNative native = new DokanNative(new NullFileSystem(), 10, "P:", "NULL", "NULL");

            native.StartDokan();
        }