View Source
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public abstract class OEmbedProviderBase : IEmbedProvider
Constructors
View Source
Declaration
protected OEmbedProviderBase(IJsonSerializer jsonSerializer)
Parameters
Properties
View Source
Declaration
public abstract string ApiEndpoint { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Declaration
public abstract Dictionary<string, string> RequestParams { get; }
Property Value
Type |
Description |
Umbraco.Cms.Core.Dictionary<System.String, System.String> |
|
View Source
Declaration
public abstract string[] UrlSchemeRegex { get; }
Property Value
Type |
Description |
System.String[] |
|
Methods
View Source
Declaration
public virtual string DownloadResponse(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual async Task<string> DownloadResponseAsync(string url, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
url |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.String> |
|
View Source
Declaration
public virtual Task<string> GeOEmbedDataAsync(string url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Nullable<System.Int32> |
maxWidth |
|
System.Nullable<System.Int32> |
maxHeight |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.String> |
|
View Source
Declaration
public virtual string GetEmbedProviderUrl(string url, int maxWidth, int maxHeight)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Int32 |
maxWidth |
|
System.Int32 |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual string GetEmbedProviderUrl(string url, int? maxWidth, int? maxHeight)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Nullable<System.Int32> |
maxWidth |
|
System.Nullable<System.Int32> |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual T GetJsonResponse<T>(string url)
where T : class
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type Parameters
View Source
Declaration
public virtual async Task<T> GetJsonResponseAsync<T>(string url, CancellationToken cancellationToken)
where T : class
Parameters
Type |
Name |
Description |
System.String |
url |
|
CancellationToken |
cancellationToken |
|
Returns
Type Parameters
View Source
Declaration
public abstract string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Int32 |
maxWidth |
|
System.Int32 |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual string GetXmlProperty(XmlDocument doc, string property)
Parameters
Type |
Name |
Description |
System.Xml.XmlDocument |
doc |
|
System.String |
property |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual XmlDocument GetXmlResponse(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.Xml.XmlDocument |
|
View Source
Declaration
public virtual async Task<XmlDocument> GetXmlResponseAsync(string url, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
url |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Xml.XmlDocument> |
|