https://learn.microsoft.com/pt-pt/dotnet/api/system.servicemodel.servicehostbase.initializeruntime?view=netframework-4.8.1
ServiceHostBase.InitializeRuntime Method (System.ServiceModel) | Microsoft Learn
Initializes the runtime for the service host.
methodsystemmicrosoftlearn