From cb3e904d49693aa7c1cbc2abd0344f537f85048c Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Thu, 3 Oct 2024 11:55:28 +0300 Subject: [PATCH] Update Post.md --- .../2024-10-01-SignalR-9-New-Features/Post.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/Community-Articles/2024-10-01-SignalR-9-New-Features/Post.md b/docs/en/Community-Articles/2024-10-01-SignalR-9-New-Features/Post.md index 243447c359..c004d45eba 100644 --- a/docs/en/Community-Articles/2024-10-01-SignalR-9-New-Features/Post.md +++ b/docs/en/Community-Articles/2024-10-01-SignalR-9-New-Features/Post.md @@ -10,7 +10,7 @@ In this article, I’ll highlight the latest .**NET 9 SignalR updates** for ASP. SignalR `Hub` class can now get a base class of a polymorphic class. As you see in the example below, I can send `Animal` to `Process` method. Before .NET 9, we could only pass the derived classes: `Cat` and `Dog`. -``` +```csharp /*** My Base Class is Animal ***/ [JsonPolymorphic] [JsonDerivedType(typeof(Cat), nameof(Cat))] @@ -53,7 +53,7 @@ Microsoft focuses mainly on .NET Aspire nowadays. That’s why SignalR now integ 1- Add these packages to your`csproj`: -``` +```xml @@ -61,7 +61,7 @@ Microsoft focuses mainly on .NET Aspire nowadays. That’s why SignalR now integ 2- Add the following startup code to your host project: -``` +```csharp builder.Services.AddSignalR(); /* After AddSignalR use AddOpenTelemetry() */ builder