/// <summary> /// Initializes a new instance of the <see cref="IrcListener"/> class. /// </summary> /// <param name="network">The network.</param> internal IrcListener(Network network) { this.network = network; listener = new Thread( this.Run ); listener.IsBackground = true; listener.Name = "ListenerThread"; }
/// <summary> /// Initializes a new instance of the <see cref="Protocol"/> class. /// </summary> public Protocol() { network = new Network(); network.OnServerMessage += ProcessMessage; }