Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Core CoreFX Runtime Adaption Layer purpose

I have been trying to find some more information on CoreFX part of .NET Core and mainly on the Runtime Adaption Layer. This adaption layer is mentioned on .NET Core diagrams (e.g. http://windowshostasp.net/wp-content/uploads/aspnet-51.jpg, but I did not found single description of purpose of this layer, so I would like to ask for explanation of this layer. Thank you.

like image 973
marek_lani Avatar asked Aug 04 '26 00:08

marek_lani


1 Answers

If I get it right, Runtime Adaption Layer is known as Platform Adaptation (Abstraction) Layer (PAL).

According to .NET Core glossary

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

The implementation for BCL (CoreFX) apparently could be found here: https://github.com/dotnet/corefx/tree/master/src/Common/src/Interop

CoreCLR btw has its own PAL

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

https://github.com/dotnet/core-setup/blob/master/src/corehost/common/pal.h (corehost actually, not CLR)

Worth to mention (from here) that PAL has Win32 API syntax

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

like image 112
Ivan Zaruba Avatar answered Aug 05 '26 13:08

Ivan Zaruba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!