protected sealed override async Task OnConnectedAsync() { await NetLog.DebugAsync("Performing possible login actions").ConfigureAwait(false); // todo: resume connections and things if (_logonFunc != null) { await _logonFunc().ConfigureAwait(false); } else { await Ready.InvokeAsync(this, EventArgs.Empty).ConfigureAwait(false); } }