Example #1
0
        static void Main(string[] args)
        {
            Console.Write("\n  Starting CommService");
                Console.Write("\n ======================\n");

                string ServerUrl = "http://*****:*****@"../../downloads/");
                foreach (string filePath in filePaths)
                    File.Delete(filePath);

                // Test Component that simply echos message

                CategoryCommunicator com = new CategoryCommunicator();
                com.Name = "echo";
                receiver.Register(com);
                com.Start();

                UploadFileCommunicator upload = new UploadFileCommunicator();
                upload.Name = "upload";
                receiver.Register(upload);
                upload.Start();

                UpdateInfoView update = new UpdateInfoView();
                update.Name = "update_infoview";
                receiver.Register(update);
                update.Start();

                SearchView search = new SearchView();
                search.Name = "search";
                receiver.Register(search);
                search.Start();

                InfoView info = new InfoView();
                info.Name = "get_file_contents";
                receiver.Register(info);
                info.Start();

                Edit_Metadata_View edit = new Edit_Metadata_View();
                edit.Name = "editXML";
                receiver.Register(edit);
                edit.Start();

                Console.Write("\n  Started CommService - Press key to exit:\n ");
                Console.ReadKey();
        }