static void Main(string[] args) { MSR.LST.UnhandledExceptionHandler.Register(); refMgr = new ReflectorMgr(); StartService(); while (true) { Console.Write("Reflector Console> "); string input = Console.ReadLine().ToLower(); 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; } } }
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; } } }
public ReflectorService() { InitializeComponent(); refMgr = ReflectorMgr.getInstance(); }
public ReflectorService() { InitializeComponent(); refMgr = new ReflectorMgr(); }
public AdminRemoting() { ReflectorMgr mgr = ReflectorMgr.getInstance(); this.registrar = mgr.RegServer; }