public void Handle(SystemMessage.SystemInit message) { try { _serverListener.StartListening(OnConnectionAccepted, _securityType.ToString()); } catch (Exception e) { Application.Exit(ExitCode.Error, e.Message); } }
public void Start() { try { _serverListener.StartListening(OnConnectionAccepted, _securityType.ToString()); } catch (Exception ex) { Log.ErrorException(ex, "Could not start listen using the {0} binding {1}:{2}.", _securityType, _serverEndPoint.Address, _serverEndPoint.Port); throw; } }