How do we specify LoaderOptimizations when we are building a Windows Service, we don't have our "Main" method as we would otherwise use
In other words, when we have a simple console application we can:
[LoaderOptimization(LoaderOptimization.MultiDomainHost)]
private static void Main(string[] args)
{
}
but for a Service, we implement the ServiceBase class and therefore don't have the main method, instead we have an
protected override void OnStart(string[] args)
{
}
But I am guessing that putting the attribute on that method won't have the same effect?