private async void Handle_Connected(EndpointConnectionEvents.Connected args) { if (args.ServerEndpoint.Uri.OriginalString != Host.Endpoint) { return; } await Host.SetConnectedState(_resourceStateManager, Host.ConnectedState.Connected); }
private async void Handle_NewConnection(EndpointConnectionEvents.Connected connectedArgs) { try { ServerVersion = await GetServerVersion(); Logger.LogDebug($"Connected to server {ServerVersion} @ {connectedArgs.ServerEndpoint.Uri}"); } catch { Logger.LogDebug($"Failed to determine the version of a server @ {connectedArgs.ServerEndpoint.Uri}"); } }
private async void Handle_NewConnection(EndpointConnectionEvents.Connected connectedArgs) { await ApplyHostConfigOnApiServer(); }