Update ServiceCollectionExtensions.cs

This commit is contained in:
Sipke Schoorstra 2022-04-12 13:55:57 +02:00
parent 9401214b14
commit 6b08eb6db9

View file

@ -8,6 +8,7 @@ using Elsa.Runtime.ProtoActor.HostedServices;
using Elsa.Runtime.ProtoActor.Services;
using Elsa.Runtime.Protos;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Proto;
using Proto.Cluster;
using Proto.Cluster.Partition;
@ -24,6 +25,9 @@ public static class ServiceCollectionExtensions
{
var systemConfig = GetSystemConfig();
// Logging.
Log.SetLoggerFactory(LoggerFactory.Create(l => l.AddConsole().SetMinimumLevel(LogLevel.Warning)));
// Actor System.
services.AddSingleton(sp =>
{