DES.App
3.7.0.62
dotnet add package DES.App --version 3.7.0.62
NuGet\Install-Package DES.App -Version 3.7.0.62
<PackageReference Include="DES.App" Version="3.7.0.62" />
<PackageVersion Include="DES.App" Version="3.7.0.62" />
<PackageReference Include="DES.App" />
paket add DES.App --version 3.7.0.62
#r "nuget: DES.App, 3.7.0.62"
#:package DES.App@3.7.0.62
#addin nuget:?package=DES.App&version=3.7.0.62
#tool nuget:?package=DES.App&version=3.7.0.62
DES Overview
DES is an enterprise-grade platform for executing, tracking, and managing dynamic workflows. It provides a robust, scalable architecture for processing data exchanges with support for both real-time and scheduled operations.
You can develop DES workflows in any programming language that can host an HTTP endpoint. Demo worker apps are available for both .NET and Java.
Create a project for workflows
Workflows are C# classes that implement the IDESWorkflow
interface from the DMS.App package. This class contains the logic executed when a DES request is submitted.
dotnet new web
Add the DMS.App nuget package.
This package contains all dependencies required to develop a workflow that runs in DES.
Optionally add the DES.SQL if the workflow needs access to the database.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DES.App" Version="3.6.0.61" />
<PackageReference Include="DES.SQL" Version="3.6.0.61" />
</ItemGroup>
</Project>
Create a class implementing IDESWorkflow
The RunAsync(...)
function is called each time a DES request is submitted.
using DES.Core.Interfaces.Services;
using DES.Core.Models;
namespace DES.Demo.Workflow;
public class MyWorkflow : IDESWorkflow
{
public Task<WorkflowResult> RunAsync(ExchangeRequest request, CancellationToken cancellationToken )
{
//workflow logic here
//...
}
}
Notice the
ExchangeRequest
argument. This contains parameters and settings configured in the Data Exchange.
Register Worker and Workflows
The app must call RegisterWorker(...)
to register the app as a worker.
Workflows must be registered as a Dependency Injection container.
using DES.App;
using DES.App.Registration;
using DES.SQL.Logger;
var builder = WebApplication.CreateBuilder(args);
//Register worker
builder.RegisterWorker(options =>
{
options.WorkerName = "DES.EWS.MyApp";
//override any options here
});
//Optional DBLogger
builder.Services.AddDbLogger(builder.Configuration);
//Register workflows
builder.Services.AddScoped<IDESWorkflow, MyWorkflow>();
var app = builder.Build();
//Map worker endpoints
app.MapWorkerEndpoints();
app.UseDbLogger();
app.Run();
Workflow classes can be used with Dependency Injection containers to reduce coupling between dependencies. For example, IConfiguration can be injected in the constructor when the workflow needs to read configuration files.
Worker Design
A Worker is an app in DES has that hosts workflows. This is the process that executes the logic.
In this case ews-myapp (exchange-worker-service for my app) is contains three workflow classes.
| ews-myapp | | --------------- | ------------- | -------------- | | | | Workflow | Workflow | Workflow | | A B C... |
ProcessRequest endpoint
The worker app will expose an HTTP endpoint to process requests.
POST /ProcessRequest
Content-Type: application/json
{
"requestID": "guid id",
"exchangeID": 123456,
"exchangeName": "My workflow",
"workflowClassName": "DMS.Workflows.MyWorkflow, DMS.Workflows",
"exchangeParameters": {
"param1": "param1value"
}
}
The manager sends requests to the worker /ProcessRequest endpoint above.
Health endpoint
Additionally, the worker app will expose a health endpoint.
GET /healh
The health endpoint is used to report the worker's health and discover workflows capabilities.
Publish worker app
Once the app is ready, publish it using dotnet publish
just like any other ASP.NET app .
dotnet publish -o ews-myapp
This is now ready to be hosted in IIS, Azure App Service, or any other hosting platform that DES has access to.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- DES.Core (>= 3.7.0.62)
- MailKit (>= 4.7.1.1)
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.19)
- System.Text.Json (>= 8.0.5)
- UriTemplate (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.7.0.62 | 154 | 8/25/2025 |