I'm trying to find a way to split an OWIN MidFunc into its inbound and outbound parts. Does anyone have any thoughts as to how to do this? The goal is to split the MidFunc so that I can create two pieces I can compose independently. I think most MidFuncs typically do something on only inbound or outbound, but I don't know of anyway to verify this for a given MidFunc.
For anyone who wants to know why I might want to do such a thing, feel free to ask questions here: https://github.com/freya-fs/freya/issues/28
--
You received this message because you are subscribed to the Google Groups "OWIN working group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Func<AppFunc,AppFunc,AppFunc,MidFunc>?
If you pass a next at composition time that you control as a marker, you
could call the beforenext, then do what you want, and call the afternext
once you signal the next?
To unroll, you need to compose your midfunc with an awaitable appfunc and
return two appfuncs, before and after, but I don’t see how you would ever
call only after.
That is, if I understand what you’re trying to do :)