JamesRandall / FunctionMonkey

Write more elegant Azure Functions with less boilerplate, more consistency, and support for REST APIs. Docs can be found at https://functionmonkey.azurefromthetrenches.com
MIT License
294 stars 49 forks source link

Docs for `previousResult` parameter #141

Open cocowalla opened 4 years ago

cocowalla commented 4 years ago

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!

mdg215199 commented 4 years ago

This might help:

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

cocowalla commented 4 years ago

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 😄)