diff --git a/src/Shared/DomainEventWrapper.cs b/src/Shared/DomainEventWrapper.cs index f8e6f52..3178722 100644 --- a/src/Shared/DomainEventWrapper.cs +++ b/src/Shared/DomainEventWrapper.cs @@ -9,14 +9,14 @@ internal sealed class DomainEventWrapper { public DomainEventWrapper(EventGridEvent eventGridEvent) { - this.Data = eventGridEvent.Data.ToObjectFromJson(); + this.Data = eventGridEvent.Data.ToObjectFromJson()!; this.DomainEventName = eventGridEvent.EventType; this.DomainEventSchema = EventSchema.EventGridEvent; } public DomainEventWrapper(CloudEvent cloudEvent) { - this.Data = cloudEvent.Data!.ToObjectFromJson(); + this.Data = cloudEvent.Data!.ToObjectFromJson()!; this.DomainEventName = cloudEvent.Type; this.DomainEventSchema = EventSchema.CloudEvent; } diff --git a/src/Workleap.DomainEventPropagation.Subscription.PullDelivery/Workleap.DomainEventPropagation.Subscription.PullDelivery.csproj b/src/Workleap.DomainEventPropagation.Subscription.PullDelivery/Workleap.DomainEventPropagation.Subscription.PullDelivery.csproj index 2b9d381..dbf7d34 100644 --- a/src/Workleap.DomainEventPropagation.Subscription.PullDelivery/Workleap.DomainEventPropagation.Subscription.PullDelivery.csproj +++ b/src/Workleap.DomainEventPropagation.Subscription.PullDelivery/Workleap.DomainEventPropagation.Subscription.PullDelivery.csproj @@ -17,8 +17,8 @@ - - + +