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; } }
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); } }