|
|
|
@ -11,6 +11,7 @@ using System.Runtime.CompilerServices; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Squidex.Infrastructure.Orleans; |
|
|
|
using Squidex.Infrastructure.Tasks; |
|
|
|
using Squidex.Log; |
|
|
|
|
|
|
|
namespace Squidex.Infrastructure.EventSourcing.Grains |
|
|
|
@ -63,6 +64,13 @@ namespace Squidex.Infrastructure.EventSourcing.Grains |
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
|
|
|
|
public override Task OnDeactivateAsync() |
|
|
|
{ |
|
|
|
CompleteAsync().Forget(); |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task CompleteAsync() |
|
|
|
{ |
|
|
|
if (currentSubscriber != null) |
|
|
|
@ -296,4 +304,4 @@ namespace Squidex.Infrastructure.EventSourcing.Grains |
|
|
|
return eventStore.CreateSubscription(subscriber, eventConsumer!.EventsFilter, State.Position); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|