Skip to content

Commit 7fc6bbf

Browse files
authored
Mention limitations of the hosting API (#29514)
1 parent e6f0207 commit 7fc6bbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/core/tutorials/netcore-hosting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ A different signature can be used by specifying the delegate type name when call
8888
The native host can now call the managed method and pass it the desired parameters.
8989

9090
[!code-cpp[HostFxrHost#CallManaged](~/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/nativehost.cpp#CallManaged)]
91+
92+
## Limitations
93+
94+
Only one runtime can be loaded inside a single process. If the `hostfxr_initialize_for_runtime_config` API is called when a runtime is already loaded, it will check if the existing runtime is compatible with the specified initialization parameters. If compatible, the existing runtime will be used and if not compatible, the API will return a failure.

0 commit comments

Comments
 (0)