Exemplo n.º 1
0
        private void generateOutput(Action <IActionBehavior> innerInvocation)
        {
            var resourceHash = _currentChain.ResourceHash();

            var output = _cache.Retrieve(resourceHash, () => CreateOuput(resourceHash, innerInvocation));

            _writer.Replay(output);
        }
Exemplo n.º 2
0
        protected override void invoke(Action action)
        {
            var resourceHash = _hash.CreateHash();

            bool hit = true;

            var output = _cache.Retrieve(resourceHash, () =>
            {
                hit             = false;
                var returnValue = CreateOutput(resourceHash, action);

                return(returnValue);
            });



            log(hit);

            _writer.Replay(output);
        }