MarkdownMediaHost Class

Creates the sites of MarkdownMediaLinkOptions.Hosts.

public static class MarkdownMediaHost

Methods

NameDescription
Create(string, Func<Uri, string?>, bool, string?)Creates a site from its host, which also matches its subdomains, and the function that gives the URL of the <iframe> of a link, or null.

Create(string, Func<Uri, string?>, bool, string?)

MarkdownMediaHost.cs

Creates a site from its host, which also matches its subdomains, and the function that gives the URL of the <iframe> of a link, or null.

public static IMarkdownMediaHost Create(string host, Func<Uri, string?> handler, bool allowFullScreen = true, string? iframeClass = null)

Parameters

host string
handler Func<Uri, string?>
allowFullScreen bool
iframeClass string?

Returns

IMarkdownMediaHost

Exceptions

ArgumentException
host is empty.
ArgumentNullException
host or handler is null.