ProcessCommand() 개인적인 메소드

private ProcessCommand ( Command command ) : void
command Microsoft.AspNetCore.SignalR.Messaging.Command
리턴 void
예제 #1
0
        private static void ProcessResultsCore(Connection connection, Message message)
        {
            if (message.IsAck)
            {
                connection._logger.LogError("Connection {0} received an unexpected ACK message.", connection.Identity);
                return;
            }

            var command = connection._serializer.Parse <Command>(message.Value, message.Encoding);

            connection.ProcessCommand(command);

            // Only send the ack if this command is waiting for it
            if (message.WaitForAck)
            {
                connection._bus.Ack(
                    acker: connection._connectionId,
                    commandId: message.CommandId).Catch(connection._logger);
            }
        }
        private static void ProcessResultsCore(Connection connection, Message message)
        {
            if (message.IsAck)
            {
                connection._logger.LogError("Connection {0} received an unexpected ACK message.", connection.Identity);
                return;
            }

            var command = connection._serializer.Parse<Command>(message.Value, message.Encoding);
            connection.ProcessCommand(command);

            // Only send the ack if this command is waiting for it
            if (message.WaitForAck)
            {
                connection._bus.Ack(
                    acker: connection._connectionId,
                    commandId: message.CommandId).Catch(connection._logger);
            }
        }