public AdminRemoting()
        {
            ReflectorMgr mgr = ReflectorMgr.getInstance();

            this.registrar = mgr.RegServer;
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            // Override the system UICulture
            string cultureOverride = null;

            if ((cultureOverride = ConfigurationManager.AppSettings["MSR.LST.Reflector.UICulture"]) != null)
            {
                try {
                    CultureInfo ci = new CultureInfo(cultureOverride);
                    System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
                }
                catch { }
            }

            MSR.LST.UnhandledExceptionHandler.Register();

            refMgr    = ReflectorMgr.getInstance();
            registrar = refMgr.RegServer;

            StartService();
            while (true)
            {
                Console.Write(Strings.ReflectorConsole);
                string input = Console.ReadLine().ToLower(CultureInfo.CurrentCulture);
                switch (input)
                {
                case "p":
                    Console.WriteLine();
                    PrintTable();
                    Console.WriteLine();
                    break;

                case "q":
                    Console.WriteLine();
                    StopService();
                    Console.WriteLine();
                    return;

                case "h":
                    Console.WriteLine();
                    PrintHelp();
                    Console.WriteLine();
                    break;

                case "d":
                    //Console.WriteLine();
                    //DeleteClient();
                    //Console.WriteLine();
                    break;

                case "s":
                    Console.WriteLine();
                    StartService();
                    Console.WriteLine();
                    break;

                case "u":
                    Console.WriteLine();
                    ServiceStatus();
                    Console.WriteLine();
                    break;

                case "t":
                    Console.WriteLine();
                    StopService();
                    Console.WriteLine();
                    break;

                default:
                    Console.WriteLine();
                    Console.WriteLine("Invalid Command");
                    Console.WriteLine();
                    PrintHelp();
                    Console.WriteLine();
                    break;
                }
            }
        }
Esempio n. 3
0
 public ReflectorService()
 {
     InitializeComponent();
     refMgr = ReflectorMgr.getInstance();
 }