internal void AddActions(Smartcard.Smartcard scard, X509Certificate2 cert, IEnumerable <Config.Action> actions)
        {
            if (this.processingCompleted.WaitOne(0))
            {
                throw new OperationCanceledException();
            }

            foreach (var act in actions)
            {
                this.AddAction(scard, cert, act);
            }
        }
        internal void AddAction(Smartcard.Smartcard scard, X509Certificate2 cert, Config.Action action)
        {
            if (this.processingCompleted.WaitOne(0))
            {
                throw new OperationCanceledException();
            }

            this.targetActions.Add(new ActionProperties
            {
                TargetSmartcard   = scard,
                TargetCertificate = cert,
                Action            = action
            });
        }