Exemple #1
0
        protected GlimpseDbQueryCommandMetadata PullCommand(string connectionId, string commandId)
        {
            GlimpseDbQueryCommandMetadata command;

            if (!Metadata.Commands.TryGetValue(commandId, out command))
            {
                command = new GlimpseDbQueryCommandMetadata(commandId, connectionId);
                Metadata.Commands.Add(commandId, command);

                var connection = PullConnection(connectionId);
                connection.RegiserCommand(command);
            }
            return(command);
        }
Exemple #2
0
        protected GlimpseDbQueryCommandMetadata PullCommand(string connectionId, string commandId)
        {
            GlimpseDbQueryCommandMetadata command;
            if (!Metadata.Commands.TryGetValue(commandId, out command))
            {
                command = new GlimpseDbQueryCommandMetadata(commandId, connectionId);
                Metadata.Commands.Add(commandId, command);

                var connection = PullConnection(connectionId);
                connection.RegiserCommand(command);
            }
            return command;
        }