Skip to content

Commit 6b30e3b

Browse files
Fix mongodb options.
1 parent 2f2df9a commit 6b30e3b

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageProjectUrl>https://github.com/squidex/squidex</PackageProjectUrl>
1212
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1313
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
14-
<Version>7.36.0</Version>
14+
<Version>7.37.0</Version>
1515
</PropertyGroup>
1616

1717
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
// ==========================================================================
2-
// Squidex Headless CMS
3-
// ==========================================================================
4-
// Copyright (c) Squidex UG (haftungsbeschraenkt)
5-
// All rights reserved. Licensed under the MIT license.
6-
// ==========================================================================
7-
8-
using Microsoft.Extensions.Configuration;
9-
using Squidex.Events;
10-
using Squidex.Events.EntityFramework;
11-
using Squidex.Events.Mongo;
12-
13-
namespace Microsoft.Extensions.DependencyInjection;
14-
15-
public static class EventsServiceExtensions
16-
{
17-
public static EventStoreBuilder AddMongoEventStore(this IServiceCollection services, IConfiguration config, Action<MongoEventStoreOptions>? configure = null,
18-
string configPath = "eventStore:sql")
19-
{
20-
services.Configure(config, configPath, configure);
21-
22-
services.AddSingletonAs<MongoEventStore>()
23-
.As<IEventStore>();
24-
services.AddSingleton(TimeProvider.System);
25-
26-
return new EventStoreBuilder(services);
27-
}
28-
}
1+
// ==========================================================================
2+
// Squidex Headless CMS
3+
// ==========================================================================
4+
// Copyright (c) Squidex UG (haftungsbeschraenkt)
5+
// All rights reserved. Licensed under the MIT license.
6+
// ==========================================================================
7+
8+
using Microsoft.Extensions.Configuration;
9+
using Squidex.Events;
10+
using Squidex.Events.EntityFramework;
11+
using Squidex.Events.Mongo;
12+
13+
namespace Microsoft.Extensions.DependencyInjection;
14+
15+
public static class EventsServiceExtensions
16+
{
17+
public static EventStoreBuilder AddMongoEventStore(this IServiceCollection services, IConfiguration config, Action<MongoEventStoreOptions>? configure = null,
18+
string configPath = "eventStore:mongoDb")
19+
{
20+
services.Configure(config, configPath, configure);
21+
22+
services.AddSingletonAs<MongoEventStore>()
23+
.As<IEventStore>();
24+
services.AddSingleton(TimeProvider.System);
25+
26+
return new EventStoreBuilder(services);
27+
}
28+
}

0 commit comments

Comments
 (0)