/// <summary> /// Initializes a new instance of the <see cref="ControlComponentInspector"/> class. /// </summary> /// <param name="kernel">The kernel.</param> /// <param name="config">The config.</param> public ControlComponentInspector(IKernel kernel, IConfiguration config) { marshalingControl = new MarshalingControl(); controlProxyHook = ObtainProxyHook(kernel, config); RegisterWindowsFormsSynchronizationContext(kernel); }
public ProxyGenerationHookAdapter(IProxyHook hook) { if (hook == null) { throw new ArgumentNullException("hook"); } this.hook = hook; }