initial template with runtime
This commit is contained in:
10
MyWorkflow.cs
Normal file
10
MyWorkflow.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
public partial class MyWorkflow : s8n_runtime.WorkflowRuntime
|
||||||
|
{
|
||||||
|
|
||||||
|
public override Task RunAsync(CancellationToken cancellation)
|
||||||
|
{
|
||||||
|
// Your custom code here
|
||||||
|
|
||||||
|
return base.RunAsync(cancellation);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,2 +1 @@
|
|||||||
// See https://aka.ms/new-console-template for more information
|
return await s8n_runtime.WorkflowRuntimeRunner.Main<MyWorkflow>(args);
|
||||||
Console.WriteLine("Hello, World!");
|
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -1,3 +1,11 @@
|
|||||||
# TODO: !!!
|
# Instructions
|
||||||
|
|
||||||
S8N workflow template repository
|
This is S8N workflow template repository. You can clone this by "Use this template" button.
|
||||||
|
|
||||||
|
1. In Template Items section check Git Content (Default Branch) option.
|
||||||
|
|
||||||
|
2. Checkout your new repository to your dev environment.
|
||||||
|
|
||||||
|
3. Rename csproj file to your new directory/project name.
|
||||||
|
|
||||||
|
That's all!
|
||||||
|
|||||||
@@ -7,4 +7,8 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Sharp8N.Runtime" Version="1.0.10" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.5.2.0
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S8N_Workflow_Template", "S8N_Workflow_Template.csproj", "{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {DA634BC7-703E-479F-9E22-B81A3A55D804}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
2
run-compiler.sh
Normal file
2
run-compiler.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# compile (link) your workflow.json and project sources
|
||||||
|
docker run --rm -v ./:/sources/project ./my-workflow.json:/sources/workflow.json jetframes482/sharp8n-compiler
|
||||||
Reference in New Issue
Block a user