/// <summary> /// establish a connection /// </summary> internal void Connect() { try { client.Connect(); NewRaceEvent(1234, $"It's the {RaceTrack.Instance} Grand Prix!"); } catch (SystemException e) { // could not connect Console.WriteLine($"Failed to establish connection, is the data source for {client} available?"); Console.WriteLine(e); } }
/// <summary> /// establish a connection /// </summary> internal void Connect() { client.Connect(); }