Click or drag to resize

EngineFactoryCreateAsync Method (RenderingMode)

Asynchronously creates and returns an IEngine instance.

Namespace:  DotNetBrowser.Engine
Assembly:  DotNetBrowser.Core (in DotNetBrowser.Core.dll) Version: 2.27.2
Syntax
C#
public static Task<IEngine> CreateAsync(
	RenderingMode renderingMode
)

Parameters

renderingMode
Type: DotNetBrowser.EngineRenderingMode
The RenderingMode that will be used for initializing the engine

Return Value

Type: TaskIEngine
A task, which returns an initialized Chromium engine on completion. The task can throw EngineInitializationException if the IEngine initialization has failed for some reason.
Remarks
Calling this method is equivalent to calling the CreateAsync(EngineOptions) method with the EngineOptions built by calling new EngineOptions.Builder().Build() with the rendering mode specified.
See Also