I used to be able to inject runtime services like IApplicationEnvironment
into the constructor of the Pogram
class of a DNX console application. However, using the latest CI build of RC1, the services no longer get injected:
public Program(IApplicationEnvironment env)
{
if (env == null)
{
// env is null.
throw new ArgumentNullException(nameof(env));
}
}