Skip to content

Create a Flow Library

The magic of Didact's orchestration happens in your dedicated .NET class libraries, called Flow Libraries. These class libraries contain your Flows, which are container classes for your jobs. For simplicity, we will focus on making one flow library here and will name it Flow Library.

New class library project

To get started, you first need to create your flow library.

We will utilize the dotnet CLI for easy, cross-platform usage; however, feel free to use Visual Studio or any other IDE of your choice if you prefer a GUI over a CLI.

  1. Open a terminal on your machine.
  2. In the terminal, type the following command:
bash
dotnet new classlib -o FlowLibrary -f net8.0

What is this?

This command will create a new class library project for you. The -o command specifies the project name and folder name, and the -f specifies the target framework version.

  1. Now navigate inside your new project folder:
bash
cd FlowLibrary

Add NuGet packages

In order to create your Flows, you need Didact's NuGet packages. Specifically, you need to add one NuGet package called Didact Core.

Run the following command to add Didact Core as a NuGet package dependency in your new class library:

bash
dotnet add package DidactCore

Configure the .csproj

We also need to make specific configurations to the flow library's .csproj file. These configurations are necessary for the build steps and ultimate deployment of your flow library to a deployment source, where Didact Engine will later absord it and execute your Flows.

cs
TODO

Proudly powered by VitePress