private async Task ReadMessageLoop() { while (true) { string msg = await inStream.ReadLineAsync(); IrcMessageReceived?.Invoke(this, new IrcMessageRecievedEventArgs(msg)); } }
protected virtual void OnIrcMessageReceived(IrcMessage message) { IrcMessageReceived?.Invoke(this, new IrcMessageReceivedEventArgs(message)); }