File tree Expand file tree Collapse file tree 4 files changed +9
-18
lines changed
samples/WorkflowCore.Sample01
test/WorkflowCore.Testing Expand file tree Collapse file tree 4 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 4
4
<PackageLicenseUrl >https://github.com/danielgerlag/workflow-core/blob/master/LICENSE.md</PackageLicenseUrl >
5
5
<RepositoryType >git</RepositoryType >
6
6
<RepositoryUrl >https://github.com/danielgerlag/workflow-core.git</RepositoryUrl >
7
- <Version >3.5.0 </Version >
8
- <AssemblyVersion >3.5.0 .0</AssemblyVersion >
9
- <FileVersion >3.5.0 .0</FileVersion >
7
+ <Version >3.5.1 </Version >
8
+ <AssemblyVersion >3.5.1 .0</AssemblyVersion >
9
+ <FileVersion >3.5.1 .0</FileVersion >
10
10
<PackageIconUrl >https://github.com/danielgerlag/workflow-core/raw/master/src/logo.png</PackageIconUrl >
11
- <PackageVersion >3.5.0 </PackageVersion >
11
+ <PackageVersion >3.5.1 </PackageVersion >
12
12
</PropertyGroup >
13
13
</Project >
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Linq ;
3
3
using WorkflowCore . Interface ;
4
+ using WorkflowCore . Models ;
4
5
using WorkflowCore . Sample01 . Steps ;
5
6
6
7
namespace WorkflowCore . Sample01
@@ -10,6 +11,7 @@ public class HelloWorldWorkflow : IWorkflow
10
11
public void Build ( IWorkflowBuilder < object > builder )
11
12
{
12
13
builder
14
+ . UseDefaultErrorBehavior ( WorkflowErrorHandling . Suspend )
13
15
. StartWith < HelloWorld > ( )
14
16
. Then < GoodbyeWorld > ( ) ;
15
17
}
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFramework >netstandard2.0</TargetFramework >
5
- <Version >3.5.0 </Version >
6
- <AssemblyVersion >3.5.0 .0</AssemblyVersion >
7
- <FileVersion >3.5.0 .0</FileVersion >
5
+ <Version >3.5.1 </Version >
6
+ <AssemblyVersion >3.5.1 .0</AssemblyVersion >
7
+ <FileVersion >3.5.1 .0</FileVersion >
8
8
<Description >Facilitates testing of workflows built on Workflow-Core</Description >
9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
12
<PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.0" />
13
13
<PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 3.1.0" />
14
14
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.1.0" />
15
- <PackageReference Include =" MongoDB.Bson" Version =" 2.8.1" />
16
15
</ItemGroup >
17
16
18
17
<ItemGroup >
Original file line number Diff line number Diff line change 5
5
using System . Threading . Tasks ;
6
6
using Microsoft . Extensions . DependencyInjection ;
7
7
using Microsoft . Extensions . Logging ;
8
- using MongoDB . Bson . Serialization ;
9
8
using WorkflowCore . Interface ;
10
9
using WorkflowCore . Models ;
11
10
@@ -28,15 +27,6 @@ protected virtual void Setup(bool registerClassMap = false)
28
27
29
28
var serviceProvider = services . BuildServiceProvider ( ) ;
30
29
31
- //config logging
32
- var loggerFactory = serviceProvider . GetService < ILoggerFactory > ( ) ;
33
- //loggerFactory.AddConsole(LogLevel.Debug);
34
-
35
- if ( registerClassMap && ! BsonClassMap . IsClassMapRegistered ( typeof ( TData ) ) )
36
- {
37
- BsonClassMap . RegisterClassMap < TData > ( map => map . AutoMap ( ) ) ;
38
- }
39
-
40
30
PersistenceProvider = serviceProvider . GetService < IPersistenceProvider > ( ) ;
41
31
Host = serviceProvider . GetService < IWorkflowHost > ( ) ;
42
32
Host . RegisterWorkflow < TWorkflow , TData > ( ) ;
You can’t perform that action at this time.
0 commit comments