Skip to content

Commit

Permalink
chore(event-hubs): pragma ignore obsolete warning in event hubs router
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels committed Mar 9, 2025
1 parent 9bf08d4 commit 5eed3bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public override async Task RouteMessageAsync<TMessageContext>(
var accessor = serviceScope.ServiceProvider.GetService<IMessageCorrelationInfoAccessor>();
accessor?.SetCorrelationInfo(correlationInfo);

#pragma warning disable CS0618 // Type or member is obsolete: EventHubs-functionality will be removed in v3.0 anyway.
await RouteMessageAsync(serviceScope.ServiceProvider, message, messageContext, correlationInfo, cancellationToken);
#pragma warning restore CS0618 // Type or member is obsolete
isSuccessful = true;
}
finally
Expand Down

0 comments on commit 5eed3bb

Please sign in to comment.