示例#1
0
 private static void RegisterAssembly(Assembly assembly)
 {
     if (KnownTypesProvider.GetProxyTypesAttribute(assembly) == null || KnownTypesProvider.KnownAssemblies.Contains(assembly))
     {
         return;
     }
     lock (KnownTypesProvider._lockObj)
     {
         if (KnownTypesProvider._knownAssemblies.Contains(assembly))
         {
             return;
         }
         KnownTypesProvider._knownAssemblies.Add(assembly);
         KnownTypesProvider._regenerateknownCustomValueTypes = true;
         KnownTypesProvider._regenerateknownOrganizationRequestResponseTypes = true;
     }
 }