Пример #1
0
        public void Configure(BehaviorGraph graph)
        {
            graph.Actions()
            .Where(_filters.Matches)
            .Each(call =>
            {
                var matchingFilter = _filters.GetDescriptionOfFirstMatchingInclude(call);

                call.Trace("{0} [matched on filter '{1}']".ToFormat(_reasonForModification, matchingFilter));

                _modification(call);
            });
        }
Пример #2
0
        public void Configure(BehaviorGraph graph)
        {
            graph.Actions()
            .Where(_filters.Matches)
            .Each(call =>
            {
                var matchingFilter = _filters.GetDescriptionOfFirstMatchingInclude(call);

                var log = "{0} [matched on filter '{1}']".ToFormat(_reasonForModification, matchingFilter);

                graph.Observer.RecordCallStatus(call, log);
                _modification(call);
            });
        }