Ultralight.Client.StompClient.ExecuteWhenConnected C# (CSharp) Метод

ExecuteWhenConnected() приватный Метод

Executes the given action when the client is connected to the server, otherwise store it for later use.
private ExecuteWhenConnected ( System.Action command ) : void
command System.Action The command.
Результат void
        private void ExecuteWhenConnected(Action command)
        {
            if (IsConnected)
            {
                command();
            }
            else
            {
                _commandQueue.Enqueue(command);
            }
        }