Skip to content

Commit e33bbdd

Browse files
Fix storage extension build (Azure#22012)
* Fix storage extension build * Add project reference * Shadow type * Camel case
1 parent eaf699d commit e33bbdd

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ internal async Task<HttpResponseMessage> ProcessAsync(
6767
$"The request content should be parseable into a JSON object or array, but was {events.Type}.");
6868
}
6969

70-
SubscriptionValidationResponse validationResponse = new(){ ValidationResponse = validationCode };
70+
SubscriptionValidationResponse validationResponse = new SubscriptionValidationResponse{ ValidationResponse = validationCode };
7171
var returnMessage = new HttpResponseMessage(HttpStatusCode.OK)
7272
{
7373
// use System.Text.Json to leverage the custom converter so that the casing is correct.

sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
<ItemGroup>
2323
<Compile Include="..\..\..\eventgrid\Microsoft.Azure.WebJobs.Extensions.EventGrid\src\TriggerBinding\HttpRequestProcessor.cs" Link="EventGrid\HttpRequestProcessor.cs" />
24-
<Compile Include="..\..\..\eventgrid\Microsoft.Azure.WebJobs.Extensions.EventGrid\src\TriggerBinding\SubscriptionValidationResponse.cs" Link="EventGrid\SubscriptionValidationResponse.cs" />
2524
</ItemGroup>
2625

2726
<ItemGroup>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using System.Text.Json.Serialization;
5+
6+
namespace Azure.Messaging.EventGrid.SystemEvents
7+
{
8+
internal class SubscriptionValidationResponse
9+
{
10+
/// <summary> Initializes a new instance of SubscriptionValidationResponse. </summary>
11+
public SubscriptionValidationResponse()
12+
{
13+
}
14+
15+
/// <summary> The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. </summary>
16+
[JsonPropertyName("validationResponse")]
17+
public string ValidationResponse { get; set; }
18+
}
19+
}

0 commit comments

Comments
 (0)