Skip to content

Commit 176a0ea

Browse files
authored
Merge pull request #102513 from kalleantero/receive-events-updates
Changed ValidationResponse handling
2 parents a9abf82 + 9c981e6 commit 176a0ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/event-grid/receive-events.md

Lines changed: 4 additions & 4 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
}
@@ -171,7 +171,7 @@ namespace Function1
171171
log.LogInformation($"Got SubscriptionValidation event data, validation code: {subscriptionValidationEventData.ValidationCode}, topic: {eventGridEvent.Topic}");
172172
// Do any additional validation (as required) and then return back the below response
173173
174-
var responseData = new SubscriptionValidationResponse()
174+
var responseData = new
175175
{
176176
ValidationResponse = subscriptionValidationEventData.ValidationCode
177177
};
@@ -305,7 +305,7 @@ namespace Function1
305305
log.LogInformation($"Got SubscriptionValidation event data, validation code: {subscriptionValidationEventData.ValidationCode}, topic: {eventGridEvent.Topic}");
306306
// Do any additional validation (as required) and then return back the below response
307307
308-
var responseData = new SubscriptionValidationResponse()
308+
var responseData = new
309309
{
310310
ValidationResponse = subscriptionValidationEventData.ValidationCode
311311
};

0 commit comments

Comments
 (0)