Skip to content

Commit fb2ab5d

Browse files
authored
Miscellany (#37879)
1 parent 3a77d38 commit fb2ab5d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/architecture/porting-existing-aspnet-apps/signalr-differences.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ASP.NET Core SignalR is incompatible with clients or servers using ASP.NET Signa
1313

1414
## Feature differences
1515

16-
- ASP.NET SignalR automatically attempts to reconnect dropped connections; this behavior is opt-in for ASP.NET Core SignalR clients
16+
- ASP.NET SignalR automatically attempts to reconnect dropped connections; this behavior is opt-in for ASP.NET Core SignalR clients.
1717
- Both frameworks support JSON; ASP.NET Core SignalR also supports a binary protocol based on MessagePack, and custom protocols can be created.
1818
- The Forever Frame transport, supported by ASP.NET SignalR, isn't supported in ASP.NET Core SignalR.
1919
- ASP.NET Core SignalR must be configured by adding `services.AddSignalR()` and `app.UseEndpoints` in _Program.cs_.

docs/core/extensions/package-and-deploy-resources.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Package and deploy resources in .NET Apps"
2+
title: "Package and deploy resources in .NET apps"
33
description: Package and deploy resources in .NET apps using a main assembly (hub) and satellite assemblies (spokes). A spoke contains localized resources but no code.
44
ms.date: 03/13/2023
55
dev_langs:
@@ -29,7 +29,7 @@ helpviewer_keywords:
2929
ms.assetid: b224d7c0-35f8-4e82-a705-dd76795e8d16
3030
---
3131

32-
# Package and deploy resources in .NET Apps
32+
# Package and deploy resources in .NET apps
3333

3434
Applications rely on the .NET Framework Resource Manager, represented by the <xref:System.Resources.ResourceManager> class, to retrieve localized resources. The Resource Manager assumes that a hub and spoke model is used to package and deploy resources. The hub is the main assembly that contains the nonlocalizable executable code and the resources for a single culture, called the neutral or default culture. The default culture is the fallback culture for the application; it is the culture whose resources are used if localized resources cannot be found. Each spoke connects to a satellite assembly that contains the resources for a single culture, but does not contain any code.
3535

@@ -39,7 +39,7 @@ There are several advantages to this model:
3939
- You can update and change an application's satellite assemblies without recompiling the application.
4040
- An application needs to load only those satellite assemblies that contain the resources needed for a particular culture. This can significantly reduce the use of system resources.
4141

42-
However, there are also disadvantages to this model:
42+
However, there are also disadvantages to this model:
4343

4444
- You must manage multiple sets of resources.
4545
- The initial cost of testing an application increases, because you must test several configurations. Note that in the long term it will be easier and less expensive to test one core application with several satellites, than to test and maintain several parallel international versions.
@@ -57,7 +57,7 @@ For more information, see [Create resource files](create-resource-files.md) and
5757

5858
## The resource fallback process
5959

60-
The hub and spoke model for packaging and deploying resources uses a fallback process to locate appropriate resources. If an application requests a localized resource that is unavailable, the common language runtime searches the hierarchy of cultures for an appropriate fallback resource that most closely matches the user's application's request, and throws an exception only as a last resort. At each level of the hierarchy, if an appropriate resource is found, the runtime uses it. If the resource is not found, the search continues at the next level.
60+
The hub and spoke model for packaging and deploying resources uses a fallback process to locate appropriate resources. If an application requests a localized resource that's unavailable, the common language runtime searches the hierarchy of cultures for an appropriate fallback resource that most closely matches the user's application's request, and throws an exception only as a last resort. At each level of the hierarchy, if an appropriate resource is found, the runtime uses it. If the resource is not found, the search continues at the next level.
6161

6262
To improve lookup performance, apply the <xref:System.Resources.NeutralResourcesLanguageAttribute> attribute to your main assembly, and pass it the name of the neutral language that will work with your main assembly.
6363

@@ -103,7 +103,7 @@ For example, suppose the application requests a resource localized for Spanish (
103103

104104
#### Optimize the .NET Framework resource fallback process
105105

106-
Under the following conditions, you can optimize the process by which the runtime searches for resources in satellite assemblies
106+
Under the following conditions, you can optimize the process by which the runtime searches for resources in satellite assemblies:
107107

108108
- Satellite assemblies are deployed in the same location as the code assembly. If the code assembly is installed in the [Global Assembly Cache](../../framework/app-domains/gac.md), satellite assemblies are also installed in the global assembly cache. If the code assembly is installed in a directory, satellite assemblies are installed in culture-specific folders of that directory.
109109

docs/fundamentals/syslib-diagnostics/syslib0049.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: SYSLIB0049 warning -
3-
description: Learn about the obsoletion of the RSA.EncryptValue and RSA.DecryptValue methods that generates compile-time warning SYSLIB0049.
2+
title: SYSLIB0049 warning - JsonSerializerOptions.AddContext is obsolete
3+
description: Learn about the obsoletion of the JsonSerializerOptions.AddContext method that generates compile-time warning SYSLIB0049.
44
ms.date: 10/09/2023
55
---
6-
# SYSLIB0049
6+
# SYSLIB0049: JsonSerializerOptions.AddContext is obsolete
77

88
The <xref:System.Text.Json.JsonSerializerOptions.AddContext%60%601?displayProperty=nameWithType> method is obsolete, starting in .NET 8. Calling it in code generates warning `SYSLIB0049` at compile time.
99

0 commit comments

Comments
 (0)