Interface IEmbeddedCardGenerator
- Namespace
- idunno.Bluesky.Embed
- Assembly
- idunno.Bluesky.dll
Interface for generating embedded cards from page metadata.
public interface IEmbeddedCardGeneratorMethods
Generate(Uri, CancellationToken)
Generates an idunno.Bluesky.Embed.EmbeddedExternal record for uri.
Task<EmbeddedExternal?> Generate(Uri uri, CancellationToken cancellationToken = default)Parameters
uriUri-
The URI to generate the card from.
cancellationTokenCancellationToken-
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
uriUri-
The URI to generate the card from.
cancellationTokenCancellationToken-
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
uriUri-
The URI to generate the card from.
cancellationTokenCancellationToken-
A token to cancel the operation.
Returns
- Task<EmbeddedExternal?>
-
An idunno.Bluesky.Embed.EmbeddedExternal if OpenGraph data is found; otherwise, null.