Browse Source

Temp

pull/95/head
Sebastian Stehle 8 years ago
parent
commit
fd3c13d8b9
  1. 1
      .gitignore
  2. 4
      src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs
  3. 28
      src/Squidex/Properties/launchSettings.json

1
.gitignore

@ -21,3 +21,4 @@ node_modules/
/src/Squidex/appsettings.Development.json
/src/Squidex/Assets
/src/Squidex/Properties/launchSettings.json

4
src/Squidex.Infrastructure.MongoDb/CQRS/Events/MongoEventStore.cs

@ -26,7 +26,7 @@ namespace Squidex.Infrastructure.CQRS.Events
public class MongoEventStore : MongoRepositoryBase<MongoEventCommit>, IEventStore
{
private const long AnyVersion = long.MinValue;
private const int AppendTimeoutMs = 1000000;
private const int AppendTimeoutMs = 5000;
private static readonly BsonTimestamp EmptyTimestamp = new BsonTimestamp(0);
private static readonly FieldDefinition<MongoEventCommit, BsonTimestamp> TimestampField = Fields.Build(x => x.Timestamp);
private static readonly FieldDefinition<MongoEventCommit, long> EventsCountField = Fields.Build(x => x.EventsCount);
@ -149,6 +149,8 @@ namespace Squidex.Infrastructure.CQRS.Events
await Collection.InsertOneAsync(commit, new InsertOneOptions(), cts.Token);
notifier.NotifyEventsStored();
return;
}
catch (MongoWriteException ex)
{

28
src/Squidex/Properties/launchSettings.json

@ -1,28 +0,0 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5000/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Squidex": {
"commandName": "Project",
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"IDENTITY__ADMINEMAIL": "sebastian@squidex.io",
"IDENTITY__ADMINPASSWORD": "1Xhn2a3b4!?",
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5000"
}
}
}
Loading…
Cancel
Save