NLog.Extensions.AzureEventGrid 4.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.Extensions.AzureEventGrid --version 4.7.0
                    
NuGet\Install-Package NLog.Extensions.AzureEventGrid -Version 4.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.Extensions.AzureEventGrid" Version="4.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NLog.Extensions.AzureEventGrid" Version="4.7.0" />
                    
Directory.Packages.props
<PackageReference Include="NLog.Extensions.AzureEventGrid" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NLog.Extensions.AzureEventGrid --version 4.7.0
                    
#r "nuget: NLog.Extensions.AzureEventGrid, 4.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NLog.Extensions.AzureEventGrid@4.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NLog.Extensions.AzureEventGrid&version=4.7.0
                    
Install as a Cake Addin
#tool nuget:?package=NLog.Extensions.AzureEventGrid&version=4.7.0
                    
Install as a Cake Tool

Azure Event Grid

Package Name NuGet Description
NLog.Extensions.AzureEventGrid NuGet Azure Event Grid

Queue Configuration

Syntax

<extensions>
  <add assembly="NLog.Extensions.AzureEventGrid" /> 
</extensions>

<targets>
  <target xsi:type="AzureEventGrid"
          name="String"
          layout="Layout"
          topic="Layout"
          cloudEventSource="Layout"
          gridEventSubject="Layout"
          eventType="Layout"
          contentType="Layout"
          dataSchema="Layout"
          accessKey="Layout">
            <metadata name="mymeta" layout="mymetavalue" />   
  </target>
</targets>

General Options

name - Name of the target.

layout - Event data-payload. Layout Required.

topic - Topic EndPoint Uri. Layout

cloudEventSource - Only for CloudEvent-format (Recommended event format) and specify context where event occurred. Layout

gridEventSubject - Only for GridEvent-format and specify resource path relative to the topic path. Layout

eventType - Type of the event. Ex. "Contoso.Items.ItemReceived". Layout

contentType - Content type of the data-payload. Layout

dataFormat - Format of the data-payload (Binary / Json). Default Binary. String

dataSchema - Schema version of the data-payload. Layout

Authentication Options

managedIdentityClientId - Sets ManagedIdentityClientId on DefaultAzureCredentialOptions. Requires serviceUri.

managedIdentityResourceId - resourceId for ManagedIdentityResourceId on DefaultAzureCredentialOptions, do not use together with ManagedIdentityClientId. Requires serviceUri.

tenantIdentity - tenantId for DefaultAzureCredentialOptions. Requires serviceUri.

sharedAccessSignature - Access signature for AzureSasCredential authentication. Requires serviceUri.

accessKey - Key for AzureKeyCredential authentication. Requires serviceUri.

clientAuthId - clientId for ClientSecretCredential authentication. Requires tenantIdentity and clientAuthSecret.

clientAuthSecret - clientSecret for ClientSecretCredential authentication. Requires tenantIdentity and clientAuthId.

Proxy Options

noProxy - Bypasses any system proxy and proxy in ProxyAddress when set to true.

proxyAddress - Address of the proxy server to use (e.g. http://proxyserver:8080).

proxyLogin - Login to use for the proxy server. Requires proxyPassword.

proxyPassword - Password to use for the proxy server. Requires proxyLogin.

useDefaultCredentialsForProxy - Uses the default credentials (System.Net.CredentialCache.DefaultCredentials) for the proxy server. Take precedence over proxyLogin and proxyPassword when set to true.

Retry Policy

taskTimeoutSeconds - How many seconds a Task is allowed to run before it is cancelled (Default 150 secs)

retryDelayMilliseconds - How many milliseconds to wait before next retry (Default 500ms, and will be doubled on each retry).

retryCount - How many attempts to retry the same Task, before it is aborted (Default 0)

Azure Identity Environment

When DefaultAzureCredential is used for Azure Identity, then it will recognize these environment variables:

  • AZURE_CLIENT_ID - For ManagedIdentityClientId / WorkloadIdentityClientId
  • AZURE_TENANT_ID - For TenantId

See also: Set up Your Environment for Authentication

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.7.1 174 11/23/2025
4.7.0 271 11/13/2025
4.6.0 201 7/13/2025
4.5.0 178 6/30/2025
4.4.1 284 3/5/2025
4.4.0 166 6/24/2024
4.3.1 342 10/24/2023
4.1.0 289 5/23/2023
4.0.0 322 2/9/2023

- Added support for Proxy-options: ProxyAddress, ProxyLogin, ProxyPassword, NoProxy, UseDefaultCredentialsForProxy
- Added support for Authentication-options: ClientAuthId + ClientAuthSecret
- Updated Azure.Identity to ver 1.16.0 (Bug fixes)
- Enabled XML documentation file generation
- Added README.md to nuget-package

Docs: https://github.com/JDetmar/NLog.Extensions.AzureStorage/blob/master/src/NLog.Extensions.AzureEventGrid/README.md