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
                    
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="CasCap.Api.Azure.AppInsights" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Api.Azure.AppInsights" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Api.Azure.AppInsights" />
                    
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 CasCap.Api.Azure.AppInsights --version 2.1.0
                    
#r "nuget: CasCap.Api.Azure.AppInsights, 2.1.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 CasCap.Api.Azure.AppInsights@2.1.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=CasCap.Api.Azure.AppInsights&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Api.Azure.AppInsights&version=2.1.0
                    
Install as a Cake Tool

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 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. 
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
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
Loading failed