Table of Contents

Interface IDocumentFactory

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Represents the factory for creating documents from responses.

public interface IDocumentFactory
Extension Methods

Methods

CreateAsync(IBrowsingContext, CreateDocumentOptions, CancellationToken)

Creates a new attribute selector from the given arguments.

Task<IDocument> CreateAsync(IBrowsingContext context, CreateDocumentOptions options, CancellationToken cancellationToken)

Parameters

context IBrowsingContext

The browsing context to use.

options CreateDocumentOptions

The options to consider.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IDocument>

The task creating the document from the response.