Beispiel #1
0
 public static void RegisterCustomBindingFactory <TView>(
     this ITargetBindingFactoryRegistry registry,
     string customName,
     Func <TView, ITargetBinding> creator)
     where TView : class
 {
     registry.RegisterFactory(new CustomBindingFactory <TView>(customName, creator));
 }
Beispiel #2
0
 public static void RegisterPropertyInfoBindingFactory(this ITargetBindingFactoryRegistry registry,
                                                       Type bindingType, Type targetType, string targetName)
 {
     registry.RegisterFactory(new SimplePropertyInfoTargetBindingFactory(bindingType, targetType, targetName));
 }