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;
     }
 }
Exemple #3
0
	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); 
     }
 }
Exemple #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);
 }
 /// <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);
 }
Exemple #8
0
 static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     addTypes(args.LoadedAssembly);
 }
Exemple #9
0
 private static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     log.Debug("Loaded: " + args.LoadedAssembly);
 }
Exemple #10
0
 static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
 }
Exemple #11
0
 private static void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     KnownTypesProvider.RegisterAssembly(args.LoadedAssembly);
 }
Exemple #12
0
 static void executionAD_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
 }
Exemple #13
0
 private void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     Console.Out.WriteLine($"CORE: {args.LoadedAssembly.FullName} {args.LoadedAssembly.Location}");
 }
Exemple #14
0
 private static void DefaultAD_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     Console.WriteLine("{0} has been loaded!", args.LoadedAssembly.GetName().Name);
 }
Exemple #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;
 }
Exemple #16
0
 private void Domain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
 {
     SnTrace.System.Write("Domain_AssemblyLoad: " + args.LoadedAssembly.FullName);
 }