Skip to content

Commit c9e3785

Browse files
committed
code tweaks
1 parent aeca28a commit c9e3785

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

articles/azure-monitor/app/live-stream.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPuls
118118
using System;
119119
using System.Threading.Tasks;
120120

121-
namespace LiveStream50
121+
namespace LiveMetricsDemo
122122
{
123123
internal class Program
124124
{
@@ -312,15 +312,13 @@ You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService
312312

313313
# [.NET 6.0+](#tab/dotnet6)
314314

315-
Modify `ConfigureServices` of your *Program.cs* file as shown.
316-
317-
Add the following namespace:
315+
In the *Program.cs* file, add the following namespace:
318316

319317
```csharp
320318
using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse;
321319
```
322320

323-
Then modify the `ConfigureServices` method:
321+
Then add the following service registration:
324322

325323
```csharp
326324
// Existing code which includes services.AddApplicationInsightsTelemetry() to enable Application Insights.
@@ -329,9 +327,7 @@ builder.Services.ConfigureTelemetryModule<QuickPulseTelemetryModule> ((module, o
329327

330328
# [.NET 5.0](#tab/dotnet5)
331329

332-
Modify `ConfigureServices` of your *Startup.cs* file as shown.
333-
334-
Add the following namespace:
330+
In the *Startup.cs* file, add the following namespace:
335331

336332
```csharp
337333
using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse;

0 commit comments

Comments
 (0)