8000 Documentation about ExecutionContext seems outdated · Issue #4448 · dotnet/dotnet-api-docs · GitHub
[go: up one dir, main page]

Skip to content
Documentation about ExecutionContext seems outdated #4448
Closed
@egraff

Description

@egraff

Since @stephentoub wrote the blog post ExecutionContext vs SynchronizationContext in 2012, that seems to be the de facto documentation that "everyone" on the Internet points to when discussing how SynchronizationContext relates to ExecutionContext.

However, as far as I can tell (I might be wrong though), SynchronizationContext is not flown as part of ExecutionContext in .NET Core, the way it was in .NET Framework (see my post on Stack Overflow). Yet, the documentation for ExecutionContext found at https://docs.microsoft.com/en-us/dotnet/api/system.threading.executioncontext?view=netcore-3.1 states both for .NET Framework and .NET Core that:

The ExecutionContext class provides a single container for all information relevant to a logical thread of execution. This includes security context, call context, and synchronization context.

and

Wherever the compressed stack flows, the managed principal, synchronization, locale, and user context also flow.

If my assumption is correct, then the documentation is incorrect for .NET Core.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0