Browse Source

Fix the registration.

pull/177/head
Sebastian Stehle 8 years ago
parent
commit
b8b9df84fc
  1. 6
      src/Squidex/Config/Domain/EventStoreServices.cs

6
src/Squidex/Config/Domain/EventStoreServices.cs

@ -22,9 +22,9 @@ namespace Squidex.Config.Domain
{
var consumeEvents = config.GetOptionalValue("eventStore:consume", false);
if (!consumeEvents)
if (consumeEvents)
{
return;
services.AddTransient<EventConsumerActor>();
}
config.ConfigureByOption("eventStore:type", new Options
@ -57,8 +57,6 @@ namespace Squidex.Config.Domain
.As<IEventStore>();
}
});
services.AddTransient<EventConsumerActor>();
}
}
}

Loading…
Cancel
Save