public int Run() { int state = Int32.MinValue; while (state != 0) { ShowProtocolVersionMenu(); state = _keyboardInteraction.ReadNumber(); switch (state) { case 1: state = ServeRedirectionToActionManager(new Ipv4ActionsManager(_keyboardInteraction)); break; case 2: state = ServeRedirectionToActionManager(new Ipv6ActionManager()); break; case 0: Console.WriteLine("Goodbye"); break; default: Console.WriteLine(state + " is not in options."); break; } } return(state); }
public int Run() { int state = Int32.MinValue; while (state != 0 && state != -1) { ShowIpv4Menu(); state = _keyboardInteraction.ReadNumber(); switch (state) { case 1: throw new NotImplementedException(); case 2: throw new NotImplementedException(); case 3: state = ServeRedirectionToActionManager(new CheckAddressActionManager(_keyboardInteraction, new CheckIpv4AddressActions(_keyboardInteraction))); break; case 9: break; case 0: break; default: Console.WriteLine(state + " is not in options."); break; } } return(state); }