コード例 #1
0
 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);
 }
コード例 #2
0
 protected virtual bool CanRegisterTypes(Assembly assembly)
 {
     return assembly.IsToolkitAssembly();
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
 protected virtual bool CanRegisterTypes(Assembly assembly)
 {
     if (BindingServiceProvider.DisableConverterAutoRegistration && BindingServiceProvider.DisableDataTemplateSelectorAutoRegistration)
         return false;
     return assembly.IsToolkitAssembly();
 }