2020-02-15 19:32:16 +00:00
|
|
|
|
using System;
|
2020-10-03 10:48:25 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2020-02-15 19:32:16 +00:00
|
|
|
|
using Elsa.Activities.Console;
|
2020-10-03 10:48:25 +00:00
|
|
|
|
using Elsa.Builders;
|
2020-02-15 19:32:16 +00:00
|
|
|
|
using Elsa.Serialization;
|
|
|
|
|
|
using Elsa.Services;
|
2020-10-03 10:48:25 +00:00
|
|
|
|
using Elsa.Services.Models;
|
2020-02-15 19:32:16 +00:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Samples.Serialization
|
|
|
|
|
|
{
|
|
|
|
|
|
class Program
|
|
|
|
|
|
{
|
2020-10-03 10:48:25 +00:00
|
|
|
|
static async Task Main(string[] args)
|
2020-02-15 19:32:16 +00:00
|
|
|
|
{
|
2020-10-03 10:48:25 +00:00
|
|
|
|
// Create a service container with Elsa services.
|
2020-02-15 19:32:16 +00:00
|
|
|
|
var services = new ServiceCollection()
|
|
|
|
|
|
.AddElsa()
|
|
|
|
|
|
.AddConsoleActivities()
|
|
|
|
|
|
.BuildServiceProvider();
|
2020-02-18 21:29:44 +00:00
|
|
|
|
|
2020-10-03 10:48:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
2020-02-15 19:32:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|