Add type NodaTime converters in sample workflow host app

Allows NodaTime string formats to be correctly parsed when loading from appsettings.json
This commit is contained in:
Sipke Schoorstra 2019-09-26 18:39:54 +02:00
parent 8de70e9c8e
commit 9b628eab61

View file

@ -1,12 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Elsa.TypeConverters;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace Elsa.WorkflowHost.Web
{
@ -14,6 +8,7 @@ namespace Elsa.WorkflowHost.Web
{
public static void Main(string[] args)
{
ProgramExtensions.ConfigureTypeConverters();
CreateWebHostBuilder(args).Build().Run();
}