Пример #1
0
        private async void Handle_Connected(EndpointConnectionEvents.Connected args)
        {
            if (args.ServerEndpoint.Uri.OriginalString != Host.Endpoint)
            {
                return;
            }

            await Host.SetConnectedState(_resourceStateManager, Host.ConnectedState.Connected);
        }
Пример #2
0
        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}");
            }
        }
Пример #3
0
 private async void Handle_NewConnection(EndpointConnectionEvents.Connected connectedArgs)
 {
     await ApplyHostConfigOnApiServer();
 }