private void OnActiveHostChanged(IHost previousHost, IHost newHost) { ActiveHostChanged?.Invoke(this, new ActiveHostChangedEventArgs(previousHost, _host)); }