Browse Source

Bugfixes

pull/152/head
Sebastian Stehle 8 years ago
parent
commit
510109fd05
  1. 1
      src/Squidex.Domain.Apps.Read.MongoDb/Apps/MongoAppEntity.cs
  2. 11
      src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStoreSubscription.cs

1
src/Squidex.Domain.Apps.Read.MongoDb/Apps/MongoAppEntity.cs

@ -10,7 +10,6 @@ using MongoDB.Bson.Serialization.Attributes;
using Squidex.Domain.Apps.Core;
using Squidex.Domain.Apps.Core.Apps;
using Squidex.Domain.Apps.Read.Apps;
using Squidex.Infrastructure;
using Squidex.Infrastructure.MongoDb;
namespace Squidex.Domain.Apps.Read.MongoDb.Apps

11
src/Squidex.Infrastructure.GetEventStore/CQRS/Events/GetEventStoreSubscription.cs

@ -20,7 +20,7 @@ using Squidex.Infrastructure.Tasks;
namespace Squidex.Infrastructure.CQRS.Events
{
internal sealed class GetEventStoreSubscription : DisposableObjectBase, IEventSubscription
internal sealed class GetEventStoreSubscription : IEventSubscription
{
private const string ProjectionName = "by-{0}-{1}";
private static readonly ConcurrentDictionary<string, bool> SubscriptionsCreated = new ConcurrentDictionary<string, bool>();
@ -57,12 +57,11 @@ namespace Squidex.Infrastructure.CQRS.Events
subscription = SubscribeToStream(streamName);
}
protected override void DisposeObject(bool disposing)
public Task StopAsync()
{
if (disposing)
{
subscription.Stop();
}
subscription.Stop();
return TaskHelper.Done;
}
private EventStoreCatchUpSubscription SubscribeToStream(string streamName)

Loading…
Cancel
Save