Example #1
0
 public static void Exception(InteractionOptionParameters <TActor, TTarget> parameters, Common.StringBuilder msg, Exception e)
 {
     if (parameters == null)
     {
         Common.Exception(msg, e);
     }
     else
     {
         parameters.PrivateException(msg, e);
     }
 }
Example #2
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;
                }
            }
Example #3
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);
            }
        }
Example #4
0
 public static void Exception(InteractionOptionParameters <TActor, TTarget> parameters, Exception e)
 {
     Exception(parameters, new Common.StringBuilder(), e);
 }