Esempio n. 1
0
            protected override void OnPerform()
            {
                try
                {
                    mResult.mResult = mItem.Run(mParameters);
                }
                catch (Exception e)
                {
                    InteractionOptionParameters <TActor, TTarget> .Exception(mParameters, new Common.StringBuilder(mItem.ToString()), e);

                    mResult.mResult = OptionResult.Failure;
                }
            }
Esempio n. 2
0
        public bool Test(TParameters parameters)
        {
            try
            {
                if (string.IsNullOrEmpty(Name))
                {
                    return(false);
                }

                return(Allow(parameters));
            }
            catch (Exception e)
            {
                InteractionOptionParameters <TActor, TTarget> .Exception(parameters, e);

                return(false);
            }
        }