Extracting contracts to abstractions library
This commit is contained in:
parent
ccf5e954fa
commit
2b669fe39f
|
|
@ -17,6 +17,8 @@ ProjectSection(SolutionItems) = preProject
|
|||
Nuget.Config = Nuget.Config
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Flowsharp.Abstractions", "src\Flowsharp.Abstractions\Flowsharp.Abstractions.csproj", "{3130C574-557C-4DA2-933E-AED7A9EBE48A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
@ -31,6 +33,10 @@ Global
|
|||
{48EDB976-3227-4DFD-BBB3-3BC9AEA19A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{48EDB976-3227-4DFD-BBB3-3BC9AEA19A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{48EDB976-3227-4DFD-BBB3-3BC9AEA19A88}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3130C574-557C-4DA2-933E-AED7A9EBE48A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3130C574-557C-4DA2-933E-AED7A9EBE48A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3130C574-557C-4DA2-933E-AED7A9EBE48A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3130C574-557C-4DA2-933E-AED7A9EBE48A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
@ -41,5 +47,6 @@ Global
|
|||
GlobalSection(NestedProjects) = preSolution
|
||||
{300EE2D5-54C5-46F2-AD03-BB43589EA074} = {DA71CDAA-8DD3-4D5F-9FBD-8E4B37A2D925}
|
||||
{48EDB976-3227-4DFD-BBB3-3BC9AEA19A88} = {DA71CDAA-8DD3-4D5F-9FBD-8E4B37A2D925}
|
||||
{3130C574-557C-4DA2-933E-AED7A9EBE48A} = {DA71CDAA-8DD3-4D5F-9FBD-8E4B37A2D925}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Flowsharp.Models
|
||||
namespace Flowsharp.Activities
|
||||
{
|
||||
public interface IActivity
|
||||
{
|
||||
13
src/Flowsharp.Abstractions/Flowsharp.Abstractions.csproj
Normal file
13
src/Flowsharp.Abstractions/Flowsharp.Abstractions.csproj
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<RootNamespace>Flowsharp</RootNamespace>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Results;
|
||||
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Results;
|
||||
|
||||
namespace Flowsharp.Services
|
||||
namespace Flowsharp
|
||||
{
|
||||
public interface IActivityInvoker
|
||||
{
|
||||
|
|
@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
|||
using Flowsharp.Activities;
|
||||
using Flowsharp.Models;
|
||||
|
||||
namespace Flowsharp.Services
|
||||
namespace Flowsharp
|
||||
{
|
||||
public interface IWorkflowInvoker
|
||||
{
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Services;
|
||||
|
||||
namespace Flowsharp.Results
|
||||
{
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Services;
|
||||
|
||||
namespace Flowsharp.Results
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Activities;
|
||||
|
||||
namespace Flowsharp.Serialization
|
||||
namespace Flowsharp.Serialization.Tokenizers
|
||||
{
|
||||
public class WorkflowTokenizationContext
|
||||
{
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using Newtonsoft.Json;
|
||||
using Flowsharp.Activities;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Flowsharp.Models
|
||||
{
|
||||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Handlers;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Results;
|
||||
|
|
@ -18,4 +18,8 @@
|
|||
<PackageReference Include="YamlDotNet.NetStandard" Version="4.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Flowsharp.Abstractions\Flowsharp.Abstractions.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Results;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
using Flowsharp.Activities;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Services;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Handlers;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Services;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flowsharp.Activities;
|
||||
using Flowsharp.Extensions;
|
||||
using Flowsharp.Models;
|
||||
using Flowsharp.Results;
|
||||
|
|
@ -24,7 +24,7 @@ namespace Flowsharp.Samples.Console
|
|||
.AddSingleton<IWorkflowInvoker, WorkflowInvoker>()
|
||||
.AddSingleton<IActivityInvoker, ActivityInvoker>()
|
||||
.AddSingleton<IWorkflowSerializer, WorkflowSerializer>()
|
||||
//.AddSingleton<ITokenFormatter, JsonTokenFormatter>()
|
||||
.AddSingleton<ITokenFormatter, JsonTokenFormatter>()
|
||||
.AddSingleton<ITokenFormatter, YamlTokenFormatter>()
|
||||
.AddSingleton<IWorkflowTokenizer, WorkflowTokenizer>()
|
||||
.AddSingleton<ITokenizerInvoker, TokenizerInvoker>()
|
||||
|
|
|
|||
Loading…
Reference in a new issue