Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Using field validation with data annotations, for example, you do not duplicate
<https://martinfowler.com/articles/replaceThrowWithNotification.html>

- **Specification and Notification Patterns** \
<https://www.codeproject.com/Tips/790758/Specification-and-Notification-Patterns>
<https://www.codeproject.com/articles/Specification-and-Notification-Patterns>

- **Lev Gorodinski. Validation in Domain-Driven Design (DDD)** \
<http://gorodinski.com/blog/2012/05/19/validation-in-domain-driven-design-ddd/>
Expand Down
2 changes: 1 addition & 1 deletion docs/core/diagnostics/observability-with-otel.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This topic is continued with a couple of example walkthroughs for using OpenTele

[.NET Aspire](/dotnet/aspire/get-started/aspire-overview) is a set of extensions to .NET to make it easy to create and work with distributed applications. One of the benefits of using .NET Aspire is that telemetry is built in, using the OpenTelemetry libraries for .NET. The default project templates for .NET Aspire contain a `ServiceDefaults` project, part of which is to setup and configure OTel. The Service Defaults project is referenced and initialized by each service in a .NET Aspire solution.

The Service Defaults project template includes the OTel SDK, ASP.NET, HttpClient and Runtime Instrumentation packages, and those are configured in the [`Extensions.cs`](https://github.com/dotnet/aspire/blob/main/src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/9.3/Extensions.cs) file. For exporting telemetry .NET Aspire includes the OTLP exporter by default so that it can provide telemetry visualization using the Aspire Dashboard.
The Service Defaults project template includes the OTel SDK, ASP.NET, HttpClient and Runtime Instrumentation packages, and those are configured in the [`Extensions.cs`](https://github.com/dotnet/aspire/blob/main/src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/9.5/Extensions.cs) file. For exporting telemetry .NET Aspire includes the OTLP exporter by default so that it can provide telemetry visualization using the Aspire Dashboard.

The Aspire Dashboard is designed to bring telemetry observation to the local debug cycle, which enables developers to not only ensure that the applications are producing telemetry, but also use that telemetry to diagnose those applications locally. Being able to observe the calls between services is proving to be just as useful at debug time as in production. The .NET Aspire dashboard is launched automatically when you F5 the `AppHost` Project from Visual Studio or `dotnet run` the `AppHost` project.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The `Span<T>` type stores a reference through which it accesses the contiguous e

## The disposable pattern

You can define a disposable `ref struct`. To do that, ensure that a `ref struct` fits the [disposable pattern](~/_csharplang/proposals/csharp-8.0/using.md#pattern-based-using). That is, it has an instance `Dispose` method, which is accessible, parameterless and has a `void` return type. You can use the [using statement or declaration](../statements/using.md) with an instance of a disposable `ref struct`.
You can define a disposable `ref struct`. To do that, ensure that a `ref struct` fits the [disposable pattern](../../../standard/design-guidelines/dispose-pattern.md). That is, it has an instance `Dispose` method that's accessible, parameterless, and has a `void` return type. You can use the [using statement or declaration](../statements/using.md) with an instance of a disposable `ref struct`.

Beginning with C# 13, you can also implement the <xref:System.IDisposable?displayName=nameWithType> on `ref struct` types. However, overload resolution prefers the disposable pattern to the interface method. The compiler resolves to an `IDisposable.Dispose` method only when a suitable `Dispose` method isn't found.

Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/language-reference/statements/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can declare several instances of the same type in one `using` statement, as

When you declare several instances in one `using` statement, they are disposed in reverse order of declaration.

You can also use the `using` statement and declaration with an instance of a [ref struct](../builtin-types/ref-struct.md) that fits the disposable pattern. That is, it has an instance `Dispose` method, which is accessible, parameterless and has a `void` return type.
You can also use the `using` statement and declaration with an instance of a [ref struct](../builtin-types/ref-struct.md) that fits the disposable pattern. That is, it has an instance `Dispose` method that's accessible, parameterless, and has a `void` return type.

The `using` statement can also be of the following form:

Expand All @@ -55,7 +55,7 @@ where `expression` produces a disposable instance. The following example demonst

## C# language specification

For more information, see [The using statement](~/_csharpstandard/standard/statements.md#1314-the-using-statement) section of the [C# language specification](~/_csharpstandard/standard/README.md) and the proposal note about ["pattern-based using" and "using declarations"](~/_csharplang/proposals/csharp-8.0/using.md).
For more information, see [The using statement](~/_csharpstandard/standard/statements.md#1314-the-using-statement) section of the [C# language specification](~/_csharpstandard/standard/README.md).

## See also

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Addresses an issue where version of the OSS zlib library is out of date. (*Appli

## Known issues

This release contains no known issues.
This release contains no known issues.

## Summary tables

Expand Down Expand Up @@ -74,7 +74,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| .NET Framework 4.8 | [5034617](https://support.microsoft.com/kb/5034617) |
| **Windows Server 2012** | **[5034688](https://support.microsoft.com/kb/5034688)** |
| .NET Framework 3.5 | [55033897](https://support.microsoft.com/kb/5033897) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5034621](https://support.microsoft.com/kb/5034621) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5034621](https://support.microsoft.com/topic/february-13-2024-security-and-quality-rollup-for-net-framework-4-6-2-4-7-4-7-1-4-7-2-for-windows-server-2012-kb5034621-d00874ee-c468-41c8-a6a7-73779d1820c5) |
| .NET Framework 4.8 | [5034616](https://support.microsoft.com/kb/5034616) |
| **Windows Server 2008 R2** | **[5034687](https://support.microsoft.com/kb/5034687)** |
| .NET Framework 3.5.1 | [5033899](https://support.microsoft.com/kb/5033899) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Addresses an issue when the native C# compiler (csc.exe) is used to compile code

## Known issues

This release contains no known issues.
This release contains no known issues.

## Summary tables

Expand All @@ -55,7 +55,7 @@ The following table outlines the updates in this release.
| Product version | Cumulative update |
| --- | --- |
| **Microsoft server operating system, version 23H2** | |
| .NET Framework 3.5, 4.8.1 | [5036617](https://support.microsoft.com/kb/5036617) |
| .NET Framework 3.5, 4.8.1 | [5036617](https://support.microsoft.com/topic/april-9-2024-kb5036617-cumulative-update-for-net-framework-3-5-and-4-8-1-for-microsoft-server-operating-system-version-23h2-fddb7c8a-9f68-4bda-96ca-e1033802e6e3) |
| **Windows 11, version 22H2 and Windows 11, version 23H2** | |
| .NET Framework 3.5, 4.8.1 | [5036620](https://support.microsoft.com/kb/5036620) |
| **Windows 11, version 21H2** | **[5037037](https://support.microsoft.com/kb/5037037)** |
Expand Down Expand Up @@ -89,7 +89,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| .NET Framework 4.8 | [5036614](https://support.microsoft.com/kb/5036614) |
| **Windows Server 2012** | **[5037039](https://support.microsoft.com/kb/5037039)** |
| .NET Framework 3.5 | [5036624](https://support.microsoft.com/kb/5036624) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5036605](https://support.microsoft.com/kb/5036605) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5036605](https://support.microsoft.com/topic/april-9-2024-security-and-quality-rollup-for-net-framework-4-6-2-4-7-4-7-1-4-7-2-for-windows-server-2012-kb5036605-60a4d4aa-c68c-441e-aff0-d9c3a58d562d) |
| .NET Framework 4.8 | [5036612](https://support.microsoft.com/kb/5036612) |
| **Windows Server 2008 R2** | **[5037038](https://support.microsoft.com/kb/5037038)** |
| .NET Framework 3.5.1 | [5036626](https://support.microsoft.com/kb/5036626) |
Expand All @@ -108,7 +108,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| .NET Framework 3.5.1 | [5036634](https://support.microsoft.com/kb/5036634) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5036631](https://support.microsoft.com/kb/5036631) |
| .NET Framework 4.8 |[5036632](https://support.microsoft.com/kb/5036632) |
| **Windows Server 2008** | **[5037128](https://support.microsoft.com/kb/5037128)** |
| **Windows Server 2008** | **[5037128](https://support.microsoft.com/topic/april-9-2024-security-only-update-for-net-framework-2-0-3-0-3-5-sp1-4-6-2-for-windows-server-2008-sp2-kb5037128-19f7a85f-a04f-4085-b68e-f2d8fb7196bd)** |
| .NET Framework 2.0, 3.0 | [5036633](https://support.microsoft.com/kb/5036633) |
| .NET Framework 3.5 SP1 | [5036636](https://support.microsoft.com/kb/5036636) |
| .NET Framework 4.6.2 | [5036631](https://support.microsoft.com/kb/5036631) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Addresses an issue with the size of memory leaks associated with AccessibleObjec

## Known issues

This release contains no known issues.
This release contains no known issues.

## Summary tables

Expand Down Expand Up @@ -75,7 +75,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| **Windows Server 2012 R2** | **[5041023](https://support.microsoft.com/kb/5041023)** |
| .NET Framework 3.5 | [5039910](https://support.microsoft.com/kb/5039910) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5039881](https://support.microsoft.com/kb/5039881) |
| .NET Framework 4.8 | [5039890](https://support.microsoft.com/kb/5039890) |
| .NET Framework 4.8 | [5039890](https://support.microsoft.com/topic/july-9-2024-security-and-quality-rollup-for-net-framework-4-8-for-windows-server-2012-r2-kb5039890-bdb019dc-5181-4770-97a2-4443c97d5b89) |
| **Windows Server 2012** | **[5041022](https://support.microsoft.com/kb/5041022)** |
| .NET Framework 3.5 | [5039908](https://support.microsoft.com/kb/5039908) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5039880](https://support.microsoft.com/kb/5039880) |
Expand All @@ -94,7 +94,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| Product version | Security only update |
| --- | --- |
| **Windows Server 2008 R2** | **[5041026](https://support.microsoft.com/kb/5041027)** |
| .NET Framework 3.5.1 | [5040119](https://support.microsoft.com/kb/5040119) |
| .NET Framework 3.5.1 | [5040119](https://support.microsoft.com/topic/july-9-2024-security-only-update-for-net-framework-3-5-1-for-windows-server-2008-r2-sp1-kb5040119-de499122-b8e3-4583-9d55-1546959d3161) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5040122](https://support.microsoft.com/kb/5040122) |
| .NET Framework 4.8 |[5040123](https://support.microsoft.com/kb/5040123) |
| **Windows Server 2008** | **[5041027](https://support.microsoft.com/kb/5041027)** |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ The following table outlines the updates in this release.
| .NET Framework 3.5, 4.8.1 | [5041169](https://support.microsoft.com/kb/5041169) |
| **Windows 10, version 22H2** | **[5041355](https://support.microsoft.com/kb/5041355)** |
| .NET Framework 3.5, 4.8 | [5041167](https://support.microsoft.com/kb/5041167) |
| .NET Framework 3.5, 4.8.1 | [5041168](https://support.microsoft.com/kb/5041168) |
| .NET Framework 3.5, 4.8.1 | [5041168](https://support.microsoft.com/topic/july-23-2024-kb5041168-cumulative-update-preview-for-net-framework-3-5-and-4-8-1-for-windows-10-version-22h2-5a91fb88-60f3-4289-836f-454dfa42ade5) |

The operating system row lists a KB that's used for update offering purposes. When the operating system KB is offered, the applicability logic determines the specific .NET Framework update(s) that will be installed. Updates for individual .NET Framework versions will be installed based on the version of .NET Framework that is already present on the device. Because of this, the operating system KB is not expected to be listed as installed updates on the device. The expected update to be installed are the .NET Framework&ndash;specific version updates listed in the previous table.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The following table outlines the updates in this release.
| **Microsoft server operating system, version 22H2** | **[5044087](https://support.microsoft.com/kb/5044087)** |
| .NET Framework 3.5, 4.8 | [5044025](https://support.microsoft.com/kb/5044025) |
| .NET Framework 3.5, 4.8.1 | [5044035](https://support.microsoft.com/kb/5044035) |
| **Windows 11, version 21H2** |**[5044092](https://support.microsoft.com/kb/5044092)** |
| **Windows 11, version 21H2** |**[5044092](https://support.microsoft.com/topic/october-8-2024-kb5044092-cumulative-update-for-net-framework-3-5-4-8-and-4-8-1-for-windows-11-version-21h2-a1c3dbfb-d769-4327-b692-aff2ba1b977a)** |
| .NET Framework 3.5, 4.8 | [5044023](https://support.microsoft.com/kb/5044023) |
| .NET Framework 3.5, 4.8.1 | [5044032](https://support.microsoft.com/kb/5044032) |
| **Microsoft server operating system, version 21H2** | **[5044099](https://support.microsoft.com/kb/5044099)** |
Expand Down Expand Up @@ -84,7 +84,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| .NET Framework 4.8 | [5044026](https://support.microsoft.com/kb/5044026) |
| **Windows Server 2012** | **[5044096](https://support.microsoft.com/kb/5044096)** |
| .NET Framework 3.5 | [5044009](https://support.microsoft.com/kb/5044009) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5044017](https://support.microsoft.com/kb/5044017) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5044017](https://support.microsoft.com/topic/october-8-2024-security-and-quality-rollup-for-net-framework-4-6-2-4-7-4-7-1-4-7-2-for-windows-server-2012-kb5044017-4a4ff56b-a0c9-42e1-9eef-84f8d1d06337) |
| .NET Framework 4.8 | [5044024](https://support.microsoft.com/kb/5044024) |
| **Windows Server 2008 R2** | **[5044095](https://support.microsoft.com/kb/5044095)** |
| .NET Framework 3.5.1 | [5044011](https://support.microsoft.com/kb/5044011) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Addresses an issue with .NET API UserPrincipal.GetAuthorizationGroups to retriev

## Known issues

This release contains no known issues.
This release contains no known issues.

## Summary tables

Expand Down Expand Up @@ -72,7 +72,7 @@ The following table outlines the updates in this release.
| .NET Framework 3.5, 4.8.1 | [5045933](https://support.microsoft.com/kb/5045933) |
| **Windows 10 1809 and Windows Server 2019** | **[5046540](https://support.microsoft.com/kb/5046540)** |
| .NET Framework 3.5, 4.7.2 | [5046268](https://support.microsoft.com/kb/5046268) |
| .NET Framework 3.5, 4.8 | [5046269](https://support.microsoft.com/kb/5046269) |
| .NET Framework 3.5, 4.8 | [5046269](https://support.microsoft.com/topic/november-12-2024-kb5046269-cumulative-update-for-net-framework-3-5-and-4-8-for-windows-10-version-1809-and-windows-server-2019-b914c843-c35a-4c94-a81f-1c8b0e7117ff) |
| **Windows 10 1607 and Windows Server 2016** | |
| .NET Framework 3.5, 4.6.2, 4.7, 4.7.1, 4.7.2 | [5046612](https://support.microsoft.com/kb/5046612) |
| .NET Framework 4.8 | [5046266](https://support.microsoft.com/kb/5046266) |
Expand All @@ -91,9 +91,9 @@ The following table is for earlier Windows and Windows Server versions for Secur
| .NET Framework 4.8 | [5046259](https://support.microsoft.com/kb/5046259) |
| **Windows Server 2008 R2** | **[5046543](https://support.microsoft.com/kb/5046543)** |
| .NET Framework 3.5.1 | [5044011](https://support.microsoft.com/kb/5044011) |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5046261](https://support.microsoft.com/kb/5046261)|
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5046261](https://support.microsoft.com/topic/november-12-2024-security-and-quality-rollup-for-net-framework-4-6-2-4-7-4-7-1-4-7-2-for-windows-server-2008-r2-sp1-and-windows-server-2008-sp2-kb5046261-8cc3ca40-5c95-4ae9-bf2b-9c73e7b35a3f)|
| .NET Framework 4.8 |[5046258](https://support.microsoft.com/kb/5046258) |
| **Windows Server 2008** | **[5046546](https://support.microsoft.com/kb/5046546)** |
| **Windows Server 2008** | **[5046546](https://support.microsoft.com/topic/november-12-2024-security-and-quality-rollup-for-net-framework-2-0-3-0-3-5-sp1-4-6-2-for-windows-server-2008-sp2-kb5046546-c7038822-4378-4a24-8f5e-95ba77cf2a89)** |
| .NET Framework 2.0, 3.0 | [5044010](https://support.microsoft.com/kb/5044010) |
| .NET Framework 3.5 SP1 | [5040673](https://support.microsoft.com/kb/5040673) |
| .NET Framework 4.6.2 | [5046261](https://support.microsoft.com/kb/5046261) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The following table outlines the updates in this release.
| .NET Framework 3.5, 4.8.1 | [5048162](https://support.microsoft.com/kb/5048162) |
| **Windows 11, version 22H2 and Windows 11, version 23H2** | |
| .NET Framework 3.5, 4.8.1 | [5048163](https://support.microsoft.com/kb/5048163) |
| **Windows 10, version 22H2** | **[5048292](https://support.microsoft.com/kb/5048292)** |
| **Windows 10, version 22H2** | **[5048292](https://support.microsoft.com/topic/november-21-2024-kb5048292-cumulative-update-preview-for-net-framework-3-5-4-8-and-4-8-1-for-windows-10-version-22h2-5d645428-d7be-4fe1-8b5d-34b7506f7d55)** |
| .NET Framework 3.5, 4.8 | [5048160](https://support.microsoft.com/kb/5048160) |
| .NET Framework 3.5, 4.8.1 | [5048161](https://support.microsoft.com/kb/5048161) |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The following table outlines the updates in this release.
| **Windows 10, version 22H2** | **[5050188](https://support.microsoft.com/kb/5050188)** |
| .NET Framework 3.5, 4.8 | [5049613](https://support.microsoft.com/kb/5049613) |
| .NET Framework 3.5, 4.8.1 | [5049621](https://support.microsoft.com/kb/5049621) |
| **Windows 10, version 21H2** | **[5050416](https://support.microsoft.com/kb/5050416)** |
| **Windows 10, version 21H2** | **[5050416](https://support.microsoft.com/topic/january-14-2025-kb5050416-cumulative-update-for-net-framework-3-5-4-8-and-4-8-1-for-windows-10-version-21h2-6312b2f7-6a46-4743-b309-d4a163ca9ead)** |
| .NET Framework 3.5, 4.8 | [5049613](https://support.microsoft.com/kb/5049613) |
| .NET Framework 3.5, 4.8.1 | [5049621](https://support.microsoft.com/kb/5049621) |
| **Windows 10 1809 and Windows Server 2019** | **[5050182](https://support.microsoft.com/kb/5050182)** |
Expand Down Expand Up @@ -86,7 +86,7 @@ The following table is for earlier Windows and Windows Server versions for Secur
| --- | --- |
| **Windows Server 2008 R2** | **[5050180](https://support.microsoft.com/kb/5050180)** |
| .NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2 | [5049627](https://support.microsoft.com/kb/5049627)|
| .NET Framework 4.8 |[5049628](https://support.microsoft.com/kb/5049628) |
| .NET Framework 4.8 |[5049628](https://support.microsoft.com/topic/january-14-2025-security-only-update-for-net-framework-4-8-for-windows-server-2008-r2-sp1-kb5049628-b1a63ec4-1f96-4a6a-a79c-200a4610fdf4) |
| **Windows Server 2008** | **[5050181](https://support.microsoft.com/kb/5050181)** |
| .NET Framework 4.6.2 | [5049627](https://support.microsoft.com/kb/5049627) |

Expand Down
Loading