Example #1
0
            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;
            }
Example #2
0
 public virtual void Setup()
 {
     ElementFactory = null;
     logRegistry    = new LogRegistry(new ListStorage());
     logConfig      = new LogConfig()
     {
         TimestampPath  = "TimePath",
         LogMessagePath = "MessagePath"
     };
 }
Example #3
0
 protected internal abstract void Apply(Call call, LogRegistry logRegistry);
 protected internal abstract void Handle(ExecutionException executionException, LogRegistry logRegistry);
Example #5
0
 protected internal abstract void Action(Call call, LogRegistry logRegistry);
Example #6
0
 protected internal abstract bool Check(Call call, LogRegistry logRegistry);
Example #7
0
 protected override void Apply(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetPreEventLog();
 }
Example #8
0
 protected override void Handle(ExecutionException executionException, LogRegistry logRegistry)
 {
     var logExtensions = executionException.Call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetExceptionHandlerLog();
 }
Example #9
0
 protected override void End(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetSessionEndLog();
 }
Example #10
0
 protected override void Action(Call call, LogRegistry logRegistry)
 {
     var logExtensions = call.GetActionAs<TestActions.LogExtensions>();
     logExtensions.SetRecklessLog();
 }