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