Fix samples (#49)
This commit is contained in:
parent
fe937956ab
commit
bd50dde6bd
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using Elsa.Core.Services;
|
||||
using Elsa.Services;
|
||||
using Elsa.Results;
|
||||
using Elsa.Services.Models;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using Elsa.Core.Services;
|
||||
using Elsa.Services;
|
||||
using Elsa.Results;
|
||||
using Elsa.Services.Models;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Sample01.Activities;
|
||||
|
|
@ -17,6 +18,7 @@ namespace Sample01
|
|||
// Setup a service collection.
|
||||
var services = new ServiceCollection()
|
||||
.AddWorkflows()
|
||||
.AddMemoryWorkflowInstanceStore()
|
||||
.AddActivity<HelloWorld>()
|
||||
.AddActivity<GoodByeWorld>()
|
||||
.BuildServiceProvider();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Activities.Console.Activities;
|
||||
using Elsa.Activities.Console.Extensions;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
|
|
@ -19,6 +20,7 @@ namespace Sample02
|
|||
// Setup a service collection.
|
||||
var services = new ServiceCollection()
|
||||
.AddWorkflows()
|
||||
.AddMemoryWorkflowInstanceStore()
|
||||
.AddConsoleActivities()
|
||||
.BuildServiceProvider();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Activities.Console.Activities;
|
||||
using Elsa.Activities.Console.Extensions;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Models;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
|
|
@ -20,6 +21,7 @@ namespace Sample03
|
|||
// Setup a service collection.
|
||||
var services = new ServiceCollection()
|
||||
.AddWorkflows()
|
||||
.AddMemoryWorkflowInstanceStore()
|
||||
.AddConsoleActivities()
|
||||
.BuildServiceProvider();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Core.Services;
|
||||
using Elsa.Results;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Results;
|
||||
using Elsa.Services.Models;
|
||||
|
||||
namespace Sample04.Activities
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using Elsa;
|
||||
using Elsa.Activities.Console.Activities;
|
||||
using Elsa.Core.Activities.ControlFlow;
|
||||
using Elsa.Core.Activities.Primitives;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Activities.ControlFlow;
|
||||
using Elsa.Activities.Primitives;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Services.Models;
|
||||
using Sample04.Activities;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Activities.Console.Extensions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Sample04.Activities;
|
||||
|
|
@ -18,6 +19,7 @@ namespace Sample04
|
|||
// Setup a service collection.
|
||||
var services = new ServiceCollection()
|
||||
.AddWorkflows()
|
||||
.AddMemoryWorkflowInstanceStore()
|
||||
.AddConsoleActivities()
|
||||
.AddActivity<Sum>()
|
||||
.AddActivity<Subtract>()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Elsa.Activities.Console.Extensions;
|
||||
using Elsa.Activities.Timers.Extensions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Core.Persistence.Extensions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using Elsa.Activities.Console.Activities;
|
||||
using Elsa.Activities.Timers.Activities;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Services.Models;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
using Elsa.Activities.Http.Activities;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Services.Models;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using Elsa.Activities.Http.Extensions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Core.Persistence.Extensions;
|
||||
using Elsa.Activities.Http.Extensions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
using Elsa.Activities.Email.Extensions;
|
||||
using Elsa.Activities.Email.Extensions;
|
||||
using Elsa.Activities.Http.Extensions;
|
||||
using Elsa.Activities.MassTransit.Extensions;
|
||||
using Elsa.Activities.Timers.Extensions;
|
||||
using Elsa.Core.Extensions;
|
||||
using Elsa.Core.Persistence.Extensions;
|
||||
using Elsa.Extensions;
|
||||
using Elsa.Persistence.Extensions;
|
||||
using Elsa.Services;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ using System.Net.Http;
|
|||
using Elsa.Activities.Email.Activities;
|
||||
using Elsa.Activities.Http.Activities;
|
||||
using Elsa.Activities.MassTransit.Activities;
|
||||
using Elsa.Core.Activities.ControlFlow;
|
||||
using Elsa.Core.Activities.Primitives;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Activities.ControlFlow;
|
||||
using Elsa.Activities.Primitives;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Services.Models;
|
||||
using Sample08.Messages;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using Elsa.Activities.MassTransit.Activities;
|
||||
using Elsa.Activities.Timers.Activities;
|
||||
using Elsa.Core.Activities.Primitives;
|
||||
using Elsa.Core.Expressions;
|
||||
using Elsa.Activities.Primitives;
|
||||
using Elsa.Expressions;
|
||||
using Elsa.Services;
|
||||
using Elsa.Services.Models;
|
||||
using Sample08.Messages;
|
||||
|
|
|
|||
Loading…
Reference in a new issue