gpt4 book ai didi

asp.net-core - .NET Core CoreFX 运行时适配层用途

转载 作者:行者123 更新时间:2023-12-05 04:11:19 28 4
gpt4 key购买 nike

我一直在尝试查找有关 .NET Core 的 CoreFX 部分的更多信息,主要是有关运行时适配层的信息。这个适配层在.NET Core图上有提到(例如http://windowshostasp.net/wp-content/uploads/aspnet-51.jpg,但是我没有找到对这个层用途的单一描述,所以我想问一下这个层的解释。谢谢。

最佳答案

如果我没记错的话,运行时适配层被称为平台适配(抽象)层 (PAL)。

根据 .NET Core glossary

PAL provides an abstraction layer between the runtime and the operating system.

显然可以在这里找到 BCL (CoreFX) 的实现: https://github.com/dotnet/corefx/tree/master/src/Common/src/Interop

顺便说一句,CoreCLR 有自己的 PAL

https://github.com/dotnet/coreclr/tree/master/src/pal

https://github.com/dotnet/core-setup/blob/master/src/corehost/common/pal.h (实际上是核心主机,不是 CLR)

值得一提的是 ( from here ) PAL 具有 Win32 API 语法

The PAL exposes a collection of interfaces that are based on Win32

关于asp.net-core - .NET Core CoreFX 运行时适配层用途,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42892037/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com