FunctionMonkey icon indicating copy to clipboard operation
FunctionMonkey copied to clipboard

Docs for `previousResult` parameter

Open cocowalla opened this issue 5 years ago • 2 comments

I was looking for some docs on the previousResult parameter of ICommandHandler.ExecuteAsync, but I couldn't find anything.

I gather this is the last response returned by the handler, but:

  1. In what scenario might I want this?
  2. How is this result stored betwen calls?
  3. Is this the last result for the same caller, or the last result by any caller?

Thanks!

cocowalla avatar Mar 12 '20 13:03 cocowalla

This might help:

https://github.com/JamesRandall/AzureFromTheTrenches.Commanding/wiki/4.-Command-Handlers

mdg215199 avatar Mar 15 '20 22:03 mdg215199

Thanks, that helps a lot!

I understand now that multiple handlers can be chained in a pipeline, which I hadn't realised before. Is there any mention of this in the FunctionMonkey docs? (just trying to see if I'd missed something I shouldn't have 😄)

cocowalla avatar Mar 15 '20 22:03 cocowalla