private static void AssertCascadedMessages(MessageRecorder recorder) { // will succeed on the retry because we change the text in the handler. // basically just proving that the interplay w/ exception handling behaviors // and continuations within the invocation is working recorder.Messages.ShouldContain("now it is good"); recorder.Messages.ShouldContain("now it is good-2"); recorder.Messages.ShouldContain("now it is good-2-4"); recorder.Messages.ShouldContain("now it is good-2-3"); recorder.Messages.ShouldContain("Traced: now it is good"); }
public WebMessageHandler(MessageRecorder recorder) { _recorder = recorder; }