private void ChangeState(IrcSessionState state, String message) { lock (_lock) { State = state; IrcStateChangedEventArgs arg; arg = new IrcStateChangedEventArgs(message); _events.InvokeEvent(EventStateChanged, this, arg); } }
private void ChangeState(IrcSessionState state, IrcException exception) { lock (_lock) { State = state; IrcStateChangedEventArgs arg; arg = new IrcStateChangedEventArgs(exception); _events.InvokeEvent(EventStateChanged, this, arg); } }