You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
I am trying to implement BL using Flows. Is there any opinionated way to:
set input to a Flow
get output for a Flow
use an existing Dependency container (Microsoft.Extensions.DependencyInjection)
From what i see from the docs / src a flow does not have an extensibility point to replace the DI container. An option of setting input is to pass it when constructing the flow via TInput Ctor arg / Property and get the output after run from another Property IValue<TOutput> that is updated after the last activity is executed.
A few observations about the design:
Flows must be transient - downside the FlowDescriptor gets rebuilt at every run, container is reconfigured every time
No option for composing flows (eg: a Flow to be considered an activity on it's own) - not an issue actually, maybe not actually desired to allow flow composition
Sample for Flow with I/O (most probably not best way to do it):
Yes, you correctly understood how to set input and output.
I'll work on supporing generic flows, using an existing DI container and other topics you mentioned.
Some of these features will be available soon, some a little bit later.
Stay tuned!
Thanks
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to implement BL using Flows. Is there any opinionated way to:
From what i see from the docs / src a flow does not have an extensibility point to replace the DI container. An option of setting input is to pass it when constructing the flow via
TInput
Ctor arg / Property and get the output after run from another PropertyIValue<TOutput>
that is updated after the last activity is executed.A few observations about the design:
Sample for Flow with I/O (most probably not best way to do it):
Usage:
The text was updated successfully, but these errors were encountered: