C# Class WebKit.ActivationContext

A simple interface to the Windows Activation Context API.
Activation context switching is required here to support registration free COM interop. Ordinarily this can be achieved by embedding an application manifest with mappings to COM objects in the assembly, however this does not work in a class library. Instead we create an activation context which explicitly loads a manifest and activate this context when we need to create a COM object.
Inheritance: IDisposable
Mostra file Open project: davejohnson/webkit-dot-net

Public Methods

Method Description
Activate ( ) : void

Activates the activation context.

ActivationContext ( string ManifestFileName ) : System

Constructor for ActivationContext.

Deactivate ( ) : void

Deactivates the activation context, activating the next one down on the 'stack'.

Dispose ( ) : void
Initialize ( ) : void

Initializes the activation context.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Activate() public method

Activates the activation context.
public Activate ( ) : void
return void

ActivationContext() public method

Constructor for ActivationContext.
public ActivationContext ( string ManifestFileName ) : System
ManifestFileName string Path of the manifest file to load.
return System

Deactivate() public method

Deactivates the activation context, activating the next one down on the 'stack'.
public Deactivate ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Initialize() public method

Initializes the activation context.
public Initialize ( ) : void
return void