문제

What is CLR hosting? What is the use case for that?

도움이 되었습니까?

해결책

See here for information about CLR hosting that was relevant for CLR v2 (.NET 2.0, 3.0 and 3.5). For information about the newer CLR Hosting API in .NET 4.0, see here.

Basically, the CLR acts as a library that can be loaded and "hosted" by a process. You can develop an app that loads and hosts the CLR if you wish; that would allow your app to contain a whole CLR virtual machine, load assemblies and run .NET managed code all within it.

SQL Server 2008, for example, can do this. You can write .NET code that is stored in a SQL Server database and run from within the SQL Server database engine. SQL Server is hosting the CLR to achieve that.

A CLR host other than the Windows shell (the usual user interface) can provide a specific context for your code to run. This can be useful for specialised applications or very particular scenarios. MSDN (link above) has some guidelines on these matters.

다른 팁

각 설정의 대상은 다릅니다.

활성 배포 구성 : 활성화 없음

이것은 Visual Studio 설정으로, Visual Studio가 전개 한 후에 모든 기능을 활성화 해야하는지 여부를 결정합니다.

기능 -> 기본적으로 활성화 : false

이것은 SharePoint가 특정 기능을 자동으로 활성화 해야하는지 여부를 결정하는 SharePoint 설정입니다.범위 팜 및 WebApp 기능이있는 기능 만 작동합니다.true SharePoint가 솔루션이 설치 될 때 기능을 활성화하고 새 WebApp가 생성 될 때 WebApp 범위

CLR Hosting is Hosting uses .NEt application.When you start the .NET runtime inside a native process, that native application becomes a host for the runtime. This lets you add .NET capabilities to your native applications.

If the runtime is running, but it hasn't got any loaded user code yet. Some internal thread scheduler and garbage collector are surely running, because they are part of the CLR runtime It is very complicated than other hosting services.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top