private void generateOutput(Action <IActionBehavior> innerInvocation) { var resourceHash = _currentChain.ResourceHash(); var output = _cache.Retrieve(resourceHash, () => CreateOuput(resourceHash, innerInvocation)); _writer.Replay(output); }
private IRecordedOutput storeAgainstResource(string resourceHash) { var output = getOutputWithEtag(Guid.NewGuid().ToString()); theOutputCache.Retrieve(resourceHash, () => output); return(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); }