EngineFactoryCreateAsync Method (EngineOptions) |
Namespace: DotNetBrowser.Engine
public static Task<IEngine> CreateAsync( EngineOptions options )
string dataDir = TestUtil.GenerateCustomFolderPath(); Debug.WriteLine($"Data directory: {dataDir}"); Directory.CreateDirectory(dataDir); EngineOptions engineOptions = new EngineOptions.Builder { UserDataDirectory = dataDir } .Build(); IEngine engine = await EngineFactory.CreateAsync(engineOptions);