Beispiel #1
0
        internal FusionContext(Loader loader, AssemblyProbe pluginProbe, IntPtr nativePluginLink)
        {
            if (loader == null)
                throw new ArgumentNullException("loader");

            if (pluginProbe == null)
                throw new ArgumentNullException("pluginProbe");

            if (nativePluginLink == IntPtr.Zero) 
                throw new ArgumentNullException("nativePluginLink");

            this.loader = loader;
            this.assemblyProbe = pluginProbe;
            this.nativePluginLink = nativePluginLink;
        }
Beispiel #2
0
 /// <summary>
 /// Initializes the runtime.
 /// </summary>
 /// <remarks>
 /// Called from the exported IL stubs as a first method to initialize the Loader singleton. 
 /// </remarks>
 public static void Initialize()
 {
     lock (SyncObject)
     {
         if (Singleton == null)
             Singleton = new Loader();
     }
 }