protected override bool Check(Call call, LogRegistry logRegistry)
            {
                var simpleAction = call.GetAction();
                if (!simpleAction.IsObjTypeOf<TestActions.LogExtensions>())
                    return false;

                var logExtensions = simpleAction.CastObj<TestActions.LogExtensions>();
                logExtensions.SetConditionLog();
                return true;
            }
Exemple #2
0
 public virtual void Setup()
 {
     ElementFactory = null;
     logRegistry    = new LogRegistry(new ListStorage());
     logConfig      = new LogConfig()
     {
         TimestampPath  = "TimePath",
         LogMessagePath = "MessagePath"
     };
 }
Exemple #3
0
 protected internal abstract void Apply(Call call, LogRegistry logRegistry);
 protected internal abstract void Handle(ExecutionException executionException, LogRegistry logRegistry);
Exemple #5
0
 protected internal abstract void Action(Call call, LogRegistry logRegistry);
Exemple #6
0
 protected internal abstract bool Check(Call call, LogRegistry logRegistry);
 protected override void Apply(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetPreEventLog();
 }
 protected override void Handle(ExecutionException executionException, LogRegistry logRegistry)
 {
     var logExtensions = executionException.Call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetExceptionHandlerLog();
 }
 protected override void End(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetSessionEndLog();
 }
 protected override void Action(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetRecklessLog();
 }