Skip to content

Internal service registration ​

At startup, SereinFlow registers the services needed for runs in the ASP.NET Core container. Usually one AddSereinFlow call is enough; you do not register each database service, executor, or controller separately.

What AddSereinFlow registers ​

The current implementation adds storage and application services, SignalR, CORS, startup checks, and execution services. UseWebApi() also adds Web API, problem responses, and documentation; UseMcp() adds MCP services.

text
AddSereinFlow
  ├─ Storage and application services
  ├─ Execution services and startup checks
  ├─ UseWebApi → Controllers, docs, run/workspace hubs
  └─ UseMcp    → HTTP MCP

Uploaded nodes run in a Worker. It only supplies public node services and objects declared with [FlowService] in the same library. The host's database objects, configuration, and IServiceProvider are not passed to node constructors.

Where to make a change ​

NeedPlace
Add a business action to the canvasCreate a node library and mark a method [FlowNode].
Share an object between nodesRegister it with [FlowService] in the library; see Services.
Add SereinFlow to an ASP.NET Core siteFollow host setup.
Start flows from another .NET processRegister the client SDK.

The source also contains AddSereinFlowStorage, AddSereinFlowApplication, and AddSereinFlowExecution. Normal host integration uses AddSereinFlow to keep those registrations aligned.

SereinFlow user and developer documentation