View Source
Class OEmbedService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class OEmbedService : IOEmbedService
Constructors
View Source
Declaration
public OEmbedService(EmbedProvidersCollection embedProvidersCollection, ILogger<OEmbedService> logger)
Parameters
Methods
View Source
GetMarkupAsync(Uri, Nullable<Int32>, Nullable<Int32>, CancellationToken)
Declaration
public async Task<Attempt<string, OEmbedOperationStatus>> GetMarkupAsync(Uri url, int? maxWidth, int? maxHeight, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Uri |
url |
|
System.Nullable<System.Int32> |
maxWidth |
|
System.Nullable<System.Int32> |
maxHeight |
|
CancellationToken |
cancellationToken |
|
Returns