public override void Initialize(IComponent component) { binder = (ControllerBinder) component; // The Asp.Net Web Forms Designer does not seem to // recognize the ISupportInitialize interface. ((ISupportInitialize)binder).BeginInit(); base.Initialize(component); ((ISupportInitialize)binder).EndInit(); }
/// <summary> /// Initializes a new instance of the <see cref="BindingContext"/> class. /// </summary> /// <param name="binder">The binder.</param> /// <param name="action">The action.</param> internal BindingContext(ControllerBinder binder, ActionBinding action) { if (binder == null) { throw new ArgumentNullException("binder"); } if (action == null) { throw new ArgumentNullException("action"); } this.action = action; this.binder = binder; RegisterDefaultScopes(); }
/// <summary> /// Initializes a new instance of the <see cref="ControllerBinding"/> class. /// </summary> /// <param name="binder">The binder.</param> public ControllerBinding(ControllerBinder binder) : this() { Binder = binder; }