private void OnLibraryLoading(LibraryLoadingEventArgs e) { EventHandler <LibraryLoadingEventArgs> handler = LibraryLoading; if (handler != null) { handler(this, e); } }
private void OnLibraryLoading(LibraryLoadingEventArgs e) { string library = e.LibraryPath; // Assembly, that is located in package directory, considered as part of package. if (pathManager.PackagesDirectories.Any( directory => library.StartsWith(directory))) { packagedLibraries.Add(library); } EventHandler <LibraryLoadingEventArgs> handler = LibraryLoading; if (handler != null) { handler(this, e); } }