private static bool FilterAssembly(Assembly assembly) { if (!assembly.IsToolkitAssembly()) return false; if (GetIsDynamic(assembly)) return false; var assemblyNames = GetReferencedAssemblies(assembly); return assemblyNames != null && assemblyNames.Any(name => name.FullName == ToolkitAssemblyName); }
protected virtual bool CanRegisterTypes(Assembly assembly) { return assembly.IsToolkitAssembly(); }
private static bool FilterAssembly(Assembly assembly) { try { if (!assembly.IsToolkitAssembly()) return false; if (GetIsDynamic(assembly)) return false; var assemblyNames = GetReferencedAssemblies(assembly); return assemblyNames != null && assemblyNames.Any(name => name.FullName == ToolkitAssemblyName); } catch (Exception e) { Tracer.Error(e.Flatten(true)); return false; } }
protected virtual bool CanRegisterTypes(Assembly assembly) { if (BindingServiceProvider.DisableConverterAutoRegistration && BindingServiceProvider.DisableDataTemplateSelectorAutoRegistration) return false; return assembly.IsToolkitAssembly(); }