Skip to content

Commit

Permalink
Fix storage extension build (#22012)
Browse files Browse the repository at this point in the history
* Fix storage extension build

* Add project reference

* Shadow type

* Camel case
  • Loading branch information
JoshLove-msft authored Jun 21, 2021
1 parent eaf699d commit e33bbdd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal async Task<HttpResponseMessage> ProcessAsync(
$"The request content should be parseable into a JSON object or array, but was {events.Type}.");
}

SubscriptionValidationResponse validationResponse = new(){ ValidationResponse = validationCode };
SubscriptionValidationResponse validationResponse = new SubscriptionValidationResponse{ ValidationResponse = validationCode };
var returnMessage = new HttpResponseMessage(HttpStatusCode.OK)
{
// use System.Text.Json to leverage the custom converter so that the casing is correct.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<ItemGroup>
<Compile Include="..\..\..\eventgrid\Microsoft.Azure.WebJobs.Extensions.EventGrid\src\TriggerBinding\HttpRequestProcessor.cs" Link="EventGrid\HttpRequestProcessor.cs" />
<Compile Include="..\..\..\eventgrid\Microsoft.Azure.WebJobs.Extensions.EventGrid\src\TriggerBinding\SubscriptionValidationResponse.cs" Link="EventGrid\SubscriptionValidationResponse.cs" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Text.Json.Serialization;

namespace Azure.Messaging.EventGrid.SystemEvents
{
internal class SubscriptionValidationResponse
{
/// <summary> Initializes a new instance of SubscriptionValidationResponse. </summary>
public SubscriptionValidationResponse()
{
}

/// <summary> The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. </summary>
[JsonPropertyName("validationResponse")]
public string ValidationResponse { get; set; }
}
}

0 comments on commit e33bbdd

Please sign in to comment.