Ejemplo n.º 1
0
 public static void ConfigureType <T>(this IAppHost appHost, Action <MetadataType> configure)
 {
     appHost.ConfigureTypes(metaType => {
         if (metaType.Type != null)
         {
             if (metaType.Type == typeof(T))
             {
                 configure(metaType);
             }
         }
         else if ((metaType.Namespace == null || metaType.Namespace == typeof(T).Namespace) &&
                  metaType.Name == typeof(T).Name)
         {
             configure(metaType);
         }
     });
 }