CasCap.Api.Azure.AppInsights
2.1.0
Prefix Reserved
dotnet add package CasCap.Api.Azure.AppInsights --version 2.1.0
NuGet\Install-Package CasCap.Api.Azure.AppInsights -Version 2.1.0
<PackageReference Include="CasCap.Api.Azure.AppInsights" Version="2.1.0" />
<PackageVersion Include="CasCap.Api.Azure.AppInsights" Version="2.1.0" />
<PackageReference Include="CasCap.Api.Azure.AppInsights" />
paket add CasCap.Api.Azure.AppInsights --version 2.1.0
#r "nuget: CasCap.Api.Azure.AppInsights, 2.1.0"
#:package CasCap.Api.Azure.AppInsights@2.1.0
#addin nuget:?package=CasCap.Api.Azure.AppInsights&version=2.1.0
#tool nuget:?package=CasCap.Api.Azure.AppInsights&version=2.1.0
CasCap.Api.Azure.AppInsights
Configuration binding for .NET applications that use Azure Application Insights. This package exposes
AppInsightsConfig
and its options registration; it does not register an Application Insights SDK,
collect telemetry or configure a telemetry exporter.
Installation
Targets net10.0 and net11.0.
dotnet add package CasCap.Api.Azure.AppInsights
Usage
Register configuration and options in your application's service collection:
using CasCap.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
services.AddSingleton<IConfiguration>(configuration);
services.AddOptions();
services.AddCasCapAppInsightsServices();
Consumers can inject IOptions<AppInsightsConfig> and read Value.InstrumentationKey. The extension
binds CasCap:AppInsightsConfig using IConfiguration; it does not add startup validation.
Configure actual telemetry collection separately using the SDK appropriate to your application.
Configuration Examples
The options model has one required property:
{
"CasCap": {
"AppInsightsConfig": {
"InstrumentationKey": "00000000-0000-0000-0000-000000000000"
}
}
}
Supply your own resource's setting through configuration. This model exposes an instrumentation key, not an Application Insights connection string. For telemetry ingestion, follow Microsoft's connection-string guidance and configure the chosen telemetry SDK separately. Service guidance checked 20 October 2026.
Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. net11.0 is compatible. |
-
net10.0
- CasCap.Common.Extensions (>= 5.2.0)
- CasCap.Common.Logging (>= 5.2.0)
-
net11.0
- CasCap.Common.Extensions (>= 5.2.0)
- CasCap.Common.Logging (>= 5.2.0)
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 |
|---|---|---|
| 2.1.0 | 111 | 11/14/2026 |
| 2.0.0 | 117 | 11/5/2026 |
| 1.8.0 | 115 | 11/1/2026 |
| 1.7.1 | 126 | 10/24/2026 |
| 1.7.0 | 106 | 10/21/2026 |
| 1.6.4 | 109 | 10/4/2026 |
| 1.6.3 | 123 | 9/25/2026 |
| 1.6.2 | 135 | 9/23/2026 |
| 1.6.1 | 141 | 9/21/2026 |
| 1.6.0 | 117 | 9/19/2026 |
| 1.5.5 | 130 | 9/11/2026 |
| 1.5.4 | 124 | 9/1/2026 |
| 1.5.3 | 136 | 8/18/2026 |
| 1.5.2 | 147 | 7/15/2026 |
| 1.5.1 | 150 | 6/26/2026 |
| 1.5.0 | 150 | 6/12/2026 |
| 1.4.13 | 161 | 6/10/2026 |
| 1.4.12 | 144 | 5/27/2026 |
| 1.4.11 | 151 | 5/26/2026 |
| 1.4.10 | 142 | 5/21/2026 |