/// <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);
		}
Example #2
0
 public void Dispose()
 {
     lock (this)
     {
         if (_marshallingControl != null)
         {
             _marshallingControl.Dispose();
             _marshallingControl = null;
         }
     }
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref = "CreateOnUIThreadInspector" /> class.
 /// </summary>
 /// <param name = "config">The config.</param>
 /// <param name = "converter"></param>
 public CreateOnUIThreadInspector(IConfiguration config, IConversionManager converter)
 {
     marshalingControl = new MarshalingControl();
     controlProxyHook  = ObtainProxyHook(config, converter);
 }
		/// <summary>
		///   Initializes a new instance of the <see cref = "CreateOnUIThreadInspector" /> class.
		/// </summary>
		/// <param name = "config">The config.</param>
		/// <param name = "converter"></param>
		public CreateOnUIThreadInspector(IConfiguration config, IConversionManager converter)
		{
			marshalingControl = new MarshalingControl();
			controlProxyHook = ObtainProxyHook(config, converter);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="CreateOnUIThreadInspector"/> class.
		/// </summary>
		/// <param name="kernel">The kernel.</param>
		/// <param name="config">The config.</param>
		public CreateOnUIThreadInspector(IKernel kernel, IConfiguration config)
		{
			marshalingControl = new MarshalingControl();
			controlProxyHook = ObtainProxyHook(kernel, config);
		}
 /// <summary>
 ///   Initializes a new instance of the <see cref = "CreateOnUIThreadInspector" /> class.
 /// </summary>
 /// <param name = "kernel">The kernel.</param>
 /// <param name = "config">The config.</param>
 public CreateOnUIThreadInspector(IKernel kernel, IConfiguration config)
 {
     marshalingControl = new MarshalingControl();
     controlProxyHook  = ObtainProxyHook(kernel, config);
 }
Example #7
0
 public EventTaskScheduler()
 {
     _marshallingControl = new MarshalingControl();
 }