Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Tokenizer tokenizer = new Tokenizer();

            URIItem uri = tokenizer.Tokenize(new Uri("http://www.eiroca.net/path/index.html?a=2#frag"));


            logCollector.Start();
            teda.Start();

            paths.Insert("C:\\temp");

            bool a;
            bool b;

            do
            {
                Thread.Sleep(1000);
                a = logCollector.IsFinished();
                b = teda.IsFinished();
            }while ((!a) | (!b));

            logCollector.Stop();
            teda.Stop();

            Console.WriteLine("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
Exemplo n.º 2
0
        public URIItem Tokenize(Uri uri)
        {
            URIItem item = new URIItem();

            item.scheme   = GetCodScheme(uri.Scheme);
            item.host     = GetCodHost(uri.Host);
            item.port     = uri.Port;
            item.path     = GetCodPath(uri.AbsolutePath);
            item.path     = GetCodQuery(uri.Query);
            item.fragment = GetCodFragment(uri.Fragment);
            return(item);
        }