Galosoft.IaaS.WorkflowCore
25.1.16.2-nj
This is a prerelease version of Galosoft.IaaS.WorkflowCore.
dotnet add package Galosoft.IaaS.WorkflowCore --version 25.1.16.2-nj
NuGet\Install-Package Galosoft.IaaS.WorkflowCore -Version 25.1.16.2-nj
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Galosoft.IaaS.WorkflowCore" Version="25.1.16.2-nj" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Galosoft.IaaS.WorkflowCore --version 25.1.16.2-nj
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosoft.IaaS.WorkflowCore, 25.1.16.2-nj"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Galosoft.IaaS.WorkflowCore as a Cake Addin #addin nuget:?package=Galosoft.IaaS.WorkflowCore&version=25.1.16.2-nj&prerelease // Install Galosoft.IaaS.WorkflowCore as a Cake Tool #tool nuget:?package=Galosoft.IaaS.WorkflowCore&version=25.1.16.2-nj&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DI
Galosoft.IaaS.WorkflowCore
services.AddWorkflowCore();
Definition
{
public override ExecutionResult Run(IStepExecutionContext context)
{
//throw new Exception();
Console.WriteLine($"Start");
return ExecutionResult.Next();
}
}
public class PlusStepBody : StepBody
{
public override ExecutionResult Run(IStepExecutionContext context)
{
//throw new Exception();
var input = context.Workflow.Data as PlusInput;
input.Output = input.P1 + input.P2;
return ExecutionResult.Next();
}
}
internal class TestWorkflow : IWorkflow<WorkflowParameter>
{
public string Id => "test";
public int Version => 1;
public void Build(IWorkflowBuilder<WorkflowParameter> builder)
{
builder.StartWith<PlusStepBody>()
.Then<PrintStepBody>()
.Then(i => Console.WriteLine("over"));
}
}
internal class EventHandlerWorkflow : IWorkflow
{
public string Id => "event-handler";
public int Version => 1;
public void Build(IWorkflowBuilder<object> builder)
{
builder
.StartWith(context => ExecutionResult.Next())
.WaitFor(Id, data => "plus")
.Output((step, data) =>
{
var input = step.EventData as PlusInput;
var d = (PlusInput)data;
d = input;
Tracer.Trace($"{input.P1}+{input.P2}", "eventhandler=>plus");
})
.Then<PlusStepBody>();
}
}
QucikStart
using (var scope = _scopeFactory.CreateScope())
{
var sp = scope.ServiceProvider;
var host = sp.GetRequiredService<IWorkflowHost>();
//await host.StartWorkflow("test", new PlusInput { P1 = 1, P2 = 2 });
await host.StartWorkflow("event-handler", new PlusInput { P1 = 1, P2 = 2 });
await host.PublishEvent("event-handler", "plus", new PlusInput { P1 = 2, P2 = 3 });
}
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Galosoft.IaaS.Core (>= 25.1.16.2-nj)
- workflowcore (>= 3.9.0)
- workflowcore.users (>= 3.9.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 |
---|---|---|
25.1.16.2-nj | 32 | 1/16/2025 |