HostProviderBuilder Class
Represents the HostProviderBuilder type.
public static class HostProviderBuilderMethods
| Name | Description |
|---|---|
| Create(string, Func<Uri, string?>, bool, string?) | Create a IHostProvider with delegate handler. |
Create(string, Func<Uri, string?>, bool, string?)
HostProviderBuilder.csCreate a IHostProvider with delegate handler.
public static IHostProvider Create(string host, Func<Uri, string?> handler, bool allowFullScreen = true, string? iframeClass = null)Parameters
hoststring- Host that can be handled. Its subdomains are handled too.
handlerFunc<Uri, string?>- Handler that generate iframe url, if uri cannot be handled, it can return
null. allowFullScreenbool- Should the generated iframe has allowfullscreen attribute.
iframeClassstring?- "class" attribute of generated iframe.
Returns
IHostProvider A IHostProvider with delegate handler.