Table of Contents

Interface IEmbeddedCardGenerator

Namespace
idunno.Bluesky.Embed
Assembly
idunno.Bluesky.dll

Interface for generating embedded cards from page metadata.

public interface IEmbeddedCardGenerator

Methods

Generate(Uri, CancellationToken)

Generates an idunno.Bluesky.Embed.EmbeddedExternal record for uri.

Task<EmbeddedExternal?> Generate(Uri uri, CancellationToken cancellationToken = default)

Parameters

uri Uri

The URI to generate the card from.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<EmbeddedExternal?>

An idunno.Bluesky.Embed.EmbeddedExternal if OpenGraph data is found; otherwise, null.

Generate(Uri, CancellationToken)

Generates an idunno.Bluesky.Embed.EmbeddedExternal record for uri.

Task<EmbeddedExternal?> Generate(Uri uri, CancellationToken cancellationToken = default)

Parameters

uri Uri

The URI to generate the card from.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<EmbeddedExternal?>

An idunno.Bluesky.Embed.EmbeddedExternal if OpenGraph data is found; otherwise, null.

Generate(Uri, CancellationToken)

Generates an idunno.Bluesky.Embed.EmbeddedExternal record for uri.

Task<EmbeddedExternal?> Generate(Uri uri, CancellationToken cancellationToken = default)

Parameters

uri Uri

The URI to generate the card from.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<EmbeddedExternal?>

An idunno.Bluesky.Embed.EmbeddedExternal if OpenGraph data is found; otherwise, null.