Browse Source

Less this.

pull/169/head
Sebastian Stehle 9 years ago
parent
commit
09504c86a2
  1. 6
      src/Squidex.Infrastructure/CQRS/Events/Orleans/Grains/Implementation/EventConsumerGrain.cs
  2. 2
      src/Squidex.Infrastructure/Orleans/GrainV2.cs

6
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) 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) 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) Task IEventSubscriber.OnClosedAsync(IEventSubscription subscription)
{ {
return dispatcher.StartNew(() => this.HandleClosedAsync(subscription)).Unwrap(); return dispatcher.StartNew(() => HandleClosedAsync(subscription)).Unwrap();
} }
public Task<Immutable<EventConsumerInfo>> GetStateAsync() public Task<Immutable<EventConsumerInfo>> GetStateAsync()

2
src/Squidex.Infrastructure/Orleans/GrainV2.cs

@ -77,7 +77,7 @@ namespace Squidex.Infrastructure.Orleans
private async Task OnSetupState() private async Task OnSetupState()
{ {
await this.ReadStateAsync(); await ReadStateAsync();
} }
} }
} }
Loading…
Cancel
Save