public void TestEmployerDefaultConstructorDetection() {
      Assembly assembly = Assembly.GetExecutingAssembly();

      AssemblyLoadEventArgs testArguments = new AssemblyLoadEventArgs(assembly);

      Assert.AreSame(assembly, testArguments.LoadedAssembly);
    }
 private void OnAssemblyLoaded(object sender, AssemblyLoadEventArgs args)
 {
     try
     {
         this.CheckAndWork(args.LoadedAssembly);
     }
     catch
     {
         Fx.AssertAndFailFast("OnAssemblyLoad should not throw exception");
         throw;
     }
 }
Esempio n. 3
0
File: test.cs Progetto: mono/gert
	static void AssemblyLoadHandler (object ob, AssemblyLoadEventArgs args)
	{
		args.LoadedAssembly.GetTypes ();
	}
 private static void NewAssemblyHandler(object sender, AssemblyLoadEventArgs args)
 {
     var assembly = args.LoadedAssembly;
     if (!assembly.ReflectionOnly)
     {
         SerializationManager.FindSerializationInfo(args.LoadedAssembly); 
     }
 }
Esempio n. 5
0
 public void UnloadOnAssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     myRf.UnloadOnEvent(AppDomain.CurrentDomain, eReasonForUnload.AssemblyLoad);
 }
 static void OnAssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     //register the loaded assembly into the assembly cache
     AssemblyCache[args.LoadedAssembly.FullName] = args.LoadedAssembly;
     Log.WriteLine(LogLevel.Verbose, "ASMFactory", "New assembly loaded: {0}", args.LoadedAssembly.FullName);
 }
Esempio n. 7
0
 /// <summary>Responds to a new plugin being loaded into the repository</summary>
 /// <param name="sender">Repository into which the assembly was loaded</param>
 /// <param name="arguments">Event arguments; contains the loaded assembly</param>
 private void assemblyLoadHandler(object sender, AssemblyLoadEventArgs arguments)
 {
     employAssemblyTypes(arguments.LoadedAssembly);
 }
Esempio n. 8
0
 static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     addTypes(args.LoadedAssembly);
 }
Esempio n. 9
0
 private static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     log.Debug("Loaded: " + args.LoadedAssembly);
 }
Esempio n. 10
0
 static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
 }
Esempio n. 11
0
 private static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     KnownTypesProvider.RegisterAssembly(args.LoadedAssembly);
 }
Esempio n. 12
0
 static void executionAD_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
 }
Esempio n. 13
0
 private void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     Console.Out.WriteLine($"CORE: {args.LoadedAssembly.FullName} {args.LoadedAssembly.Location}");
 }
Esempio n. 14
0
 private static void DefaultAD_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     Console.WriteLine("{0} has been loaded!", args.LoadedAssembly.GetName().Name);
 }
Esempio n. 15
0
 /// <summary>
 /// Occurs when an assembly is loaded. The loaded assembly is added
 /// to the assembly cache.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="args">An <see cref="AssemblyLoadEventArgs" /> that contains the event data.</param>
 private void AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     // store assembly in cache
     _assemblyCache[args.LoadedAssembly.FullName] = args.LoadedAssembly;
 }
Esempio n. 16
0
 private void Domain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     SnTrace.System.Write("Domain_AssemblyLoad: " + args.LoadedAssembly.FullName);
 }