diff --git a/src/Squidex.Infrastructure/CQRS/Events/Orleans/Grains/Implementation/EventConsumerGrain.cs b/src/Squidex.Infrastructure/CQRS/Events/Orleans/Grains/Implementation/EventConsumerGrain.cs index c390bbb54..329e7f6c8 100644 --- a/src/Squidex.Infrastructure/CQRS/Events/Orleans/Grains/Implementation/EventConsumerGrain.cs +++ b/src/Squidex.Infrastructure/CQRS/Events/Orleans/Grains/Implementation/EventConsumerGrain.cs @@ -173,17 +173,17 @@ namespace Squidex.Infrastructure.CQRS.Events.Orleans.Grains.Implementation Task IEventSubscriber.OnEventAsync(IEventSubscription subscription, StoredEvent storedEvent) { - return dispatcher.StartNew(() => this.HandleEventAsync(subscription, storedEvent)).Unwrap(); + return dispatcher.StartNew(() => HandleEventAsync(subscription, storedEvent)).Unwrap(); } Task IEventSubscriber.OnErrorAsync(IEventSubscription subscription, Exception exception) { - return dispatcher.StartNew(() => this.HandleErrorAsync(subscription, exception)).Unwrap(); + return dispatcher.StartNew(() => HandleErrorAsync(subscription, exception)).Unwrap(); } Task IEventSubscriber.OnClosedAsync(IEventSubscription subscription) { - return dispatcher.StartNew(() => this.HandleClosedAsync(subscription)).Unwrap(); + return dispatcher.StartNew(() => HandleClosedAsync(subscription)).Unwrap(); } public Task> GetStateAsync() diff --git a/src/Squidex.Infrastructure/Orleans/GrainV2.cs b/src/Squidex.Infrastructure/Orleans/GrainV2.cs index 9099951fb..0a2006362 100644 --- a/src/Squidex.Infrastructure/Orleans/GrainV2.cs +++ b/src/Squidex.Infrastructure/Orleans/GrainV2.cs @@ -77,7 +77,7 @@ namespace Squidex.Infrastructure.Orleans private async Task OnSetupState() { - await this.ReadStateAsync(); + await ReadStateAsync(); } } } \ No newline at end of file