-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding SendGrid Extension * Addressed PR feedback
- Loading branch information
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
extensions/Worker.Extensions.SendGrid/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using Microsoft.Azure.Functions.Worker.Extensions.Abstractions; | ||
|
||
[assembly: ExtensionInformation("Microsoft.Azure.WebJobs.Extensions.SendGrid", "3.0.2")] |
47 changes: 47 additions & 0 deletions
47
extensions/Worker.Extensions.SendGrid/SendGridAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using Microsoft.Azure.Functions.Worker.Extensions.Abstractions; | ||
|
||
namespace Microsoft.Azure.Functions.Worker | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SendGridOutputAttribute"/> class. | ||
/// </summary> | ||
public sealed class SendGridOutputAttribute : OutputBindingAttribute | ||
{ | ||
/// <summary> | ||
/// Initialize a new instance of the <see cref="SendGridOutputAttribute"/> | ||
/// </summary> | ||
public SendGridOutputAttribute() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets an optional string value indicating the app setting to use as the SendGrid API key, | ||
/// if different than the one specified in the <see cref="SendGrid.SendGridClientOptions"/>. | ||
/// </summary> | ||
public string? ApiKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message "To" field. May include binding parameters. | ||
/// </summary> | ||
public string? To { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message "From" field. May include binding parameters. | ||
/// </summary> | ||
public string? From { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message "Subject" field. May include binding parameters. | ||
/// </summary> | ||
public string? Subject { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the message "Text" field. May include binding parameters. | ||
/// </summary> | ||
public string? Text { get; set; } | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
extensions/Worker.Extensions.SendGrid/Worker.Extensions.SendGrid.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Microsoft.Azure.Functions.Worker.Extensions.SendGrid</AssemblyName> | ||
<RootNamespace>Microsoft.Azure.Functions.Worker.Extensions.SendGrid</RootNamespace> | ||
<Description>Azure SendGrid extension for .NET isolated functions</Description> | ||
|
||
<!--Version information--> | ||
<VersionPrefix>3.0.2</VersionPrefix> | ||
|
||
<!--Temporarily opting out of documentation. Pending documentation--> | ||
<GenerateDocumentationFile>false</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\..\build\Extensions.props" /> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Worker.Extensions.Abstractions\Worker.Extensions.Abstractions.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |