private void Reconnect(string newConnectionName) { this.connection.Disconnect(); this.connection = new PipeConnection(newConnectionName); this.connection.StartConnection(); try { } catch (Exception) { StartChatting(); } }
public Client() { connection = new PipeConnection(mainPipeName); phraseGenerator = new PhraseGenerator(); }