Ejemplo n.º 1
0
        public RuntimeEnvironment(BootstrapperContext bootstrapperContext)
        {
            // Use the DefaultRuntimeEnvironment to detect the OS details rather than bootstrapper context (temporary, this is probably going away anyway)
            var defaultEnv = new DefaultRuntimeEnvironment();
            OperatingSystem = defaultEnv.OperatingSystem;
            OperatingSystemVersion = defaultEnv.OperatingSystemVersion;
            OperatingSystemPlatform = defaultEnv.OperatingSystemPlatform;

            RuntimeType = bootstrapperContext.RuntimeType;
            RuntimeArchitecture = bootstrapperContext.Architecture;
            RuntimePath = bootstrapperContext.RuntimeDirectory;
        }
Ejemplo n.º 2
0
        public RuntimeEnvironment(BootstrapperContext bootstrapperContext)
        {
            // Use the DefaultRuntimeEnvironment to detect the OS details rather than bootstrapper context (temporary, this is probably going away anyway)
            var defaultEnv = new DefaultRuntimeEnvironment();

            OperatingSystem         = defaultEnv.OperatingSystem;
            OperatingSystemVersion  = defaultEnv.OperatingSystemVersion;
            OperatingSystemPlatform = defaultEnv.OperatingSystemPlatform;

            RuntimeType         = bootstrapperContext.RuntimeType;
            RuntimeArchitecture = bootstrapperContext.Architecture;
            RuntimePath         = bootstrapperContext.RuntimeDirectory;
        }
Ejemplo n.º 3
0
 public DefaultPlatformServices()
 {
     Application = new DefaultApplicationEnvironment();
     Runtime     = new DefaultRuntimeEnvironment();
 }