dotnet / dotnet/docs

Write a custom .NET host to control the .NET runtime from your native code

Open
#41,515 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Missing information

### Description

Missing information and code examples how to close and clean-up after the host usages. Two successive host loads and inits performed like in the article don't work.
I apply this scenario in cases when native code may require invoke the managed code from time to time _several_ times. So correct and full unload of the host would be great.

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/tutorials/netcore-hosting.md

### Document Version Independent Id

a98926cc-64ab-2911-e4b8-1eaf4573dfe4

### Article author

@mjrousos

### Metadata

* ID: 83da7030-b5f1-72ad-71f6-424ff45b8b7f
* Service: **dotnet-fundamentals**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.