public override void RunCommand(object sender)
        {
            var engine     = (AutomationEngineInstance)sender;
            var vQueueItem = (Dictionary <string, object>)v_QueueItem.ConvertUserVariableToObject(engine);

            var client = AuthMethods.GetAuthToken();

            Guid transactionKey = (Guid)vQueueItem["LockTransactionKey"];

            QueueItemMethods.ExtendQueueItem(client, transactionKey);
        }
Exemplo n.º 2
0
        public async override Task RunCommand(object sender)
        {
            var engine     = (IAutomationEngineInstance)sender;
            var vQueueItem = (Dictionary <string, object>) await v_QueueItem.EvaluateCode(engine);

            Guid transactionKey = (Guid)vQueueItem["LockTransactionKey"];

            if (transactionKey == null || transactionKey == Guid.Empty)
            {
                throw new NullReferenceException($"Transaction key {transactionKey} is invalid or not found");
            }

            var userInfo = ServerSessionVariableMethods.GetUserInfo(engine);

            QueueItemMethods.ExtendQueueItem(userInfo, transactionKey);
        }
        public override void RunCommand(object sender)
        {
            var engine     = (IAutomationEngineInstance)sender;
            var vQueueItem = (Dictionary <string, object>)v_QueueItem.ConvertUserVariableToObject(engine, nameof(v_QueueItem), this);

            var client = AuthMethods.GetAuthToken();

            Guid transactionKey = (Guid)vQueueItem["LockTransactionKey"];

            if (transactionKey == null || transactionKey == Guid.Empty)
            {
                throw new NullReferenceException($"Transaction key {transactionKey} is invalid or not found");
            }

            QueueItemMethods.ExtendQueueItem(client, transactionKey);
        }