IWebViewCreateJavascriptExecutionContextT Method (JavascriptExecutionContextMethodT, T)Awesomium.NET 1.7.6Awesomium.NET
Creates an asynchronous Javascript Execution Context and executes the method associated with it.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

void CreateJavascriptExecutionContext<T>(
	JavascriptExecutionContextMethod<T> method,
	T state
)

Parameters

method
Type: Awesomium.CoreJavascriptExecutionContextMethodT
The method associated with the created Javascript Execution Context.
state
Type: T
An object of type T to be passed to the method.

Type Parameters

T
The type of an object that the caller can pass to the specified method.
Exceptions

ExceptionCondition
InvalidOperationException You cannot create an asynchronous Javascript Execution Context from within a synchronous Javascript Execution Context.
Remarks

This method creates an asynchronous Javascript Execution Context and immediately invokes the specified method that is executed within the context.

The major features provided by an asynchronous Javascript Execution Context to the associated routine, are:

Note Note
Most of the Javascript-related events of a view and all handlers of a custom JavaScript method, are already executed in a Javascript Execution Context.
Caution note Caution
Javascript-related events or a custom JavaScript method handlers that are called synchronously, are executed in a synchronous Javascript Execution Context. Creating an asynchronous Javascript Execution Context from within a synchronous one, is not allowed.

For details, read the following articles:

See Also

Reference

Other Resources