private void generateOutput(Action <IActionBehavior> innerInvocation) { var resourceHash = _currentChain.ResourceHash(); var output = _cache.Retrieve(resourceHash, () => CreateOuput(resourceHash, innerInvocation)); _writer.Replay(output); }
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); }