Skip to content

Commit 40e46ce

Browse files
authored
Changed ValidationResponse handling
Changed ValidationResponse handling because ValidationResponse property in SubscriptionValidationResponse class doesn't support anymore setting value directly when Azure.Messaging.EventGrid library is used.
1 parent 290d2b8 commit 40e46ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/event-grid/receive-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ namespace Function1
6969
{
7070
log.LogInformation($"Got SubscriptionValidation event data, validation code: {subscriptionValidationEventData.ValidationCode}, topic: {eventGridEvent.Topic}");
7171
// Do any additional validation (as required) and then return back the below response
72-
73-
var responseData = new SubscriptionValidationResponse()
72+
var responseData = new
7473
{
7574
ValidationResponse = subscriptionValidationEventData.ValidationCode
7675
};
76+
7777
return new OkObjectResult(responseData);
7878
}
7979
}

0 commit comments

Comments
 (0)