Ejemplo n.º 1
0
        public TargetRuntime()
        {
            assemblyContext         = new RuntimeAssemblyContext(this);
            composedAssemblyContext = new ComposedAssemblyContext();
            composedAssemblyContext.Add(Runtime.SystemAssemblyService.UserAssemblyContext);
            composedAssemblyContext.Add(assemblyContext);

            Runtime.ShuttingDown += delegate {
                ShuttingDown = true;
            };
        }
		public TargetRuntime ()
		{
			assemblyContext = new RuntimeAssemblyContext (this);
			composedAssemblyContext = new ComposedAssemblyContext ();
			composedAssemblyContext.Add (Runtime.SystemAssemblyService.UserAssemblyContext);
			composedAssemblyContext.Add (assemblyContext);
			
			Runtime.ShuttingDown += delegate {
				ShuttingDown = true;
			};
		}
Ejemplo n.º 3
0
        public TargetRuntime()
        {
            assemblyContext         = new RuntimeAssemblyContext(this);
            composedAssemblyContext = new ComposedAssemblyContext();
            composedAssemblyContext.Add(assemblyContext);

            InternalId = Interlocked.Increment(ref internalIdCounter);

            Runtime.ShuttingDown += delegate {
                ShuttingDown = true;
            };
        }
Ejemplo n.º 4
0
        private void ParsePCFile(string pcfile)
        {
            // Don't register the package twice
            string pname = Path.GetFileNameWithoutExtension(pcfile);

            if (RuntimeAssemblyContext.GetPackageInternal(pname) != null || IsCorePackage(pname))
            {
                return;
            }

            LibraryPackageInfo pinfo = PcFileCache.GetPackageInfo(pcfile);

            if (pinfo.IsValidPackage)
            {
                RuntimeAssemblyContext.RegisterPackage(pinfo, false);
            }
        }