View Source
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Management.dll
public class MediaUrlFactory : IMediaUrlFactory
Constructors
View Source
MediaUrlFactory(IOptions<ContentSettings>, MediaUrlGeneratorCollection, IAbsoluteUrlBuilder)
Declaration
public MediaUrlFactory(IOptions<ContentSettings> contentSettings, MediaUrlGeneratorCollection mediaUrlGenerators, IAbsoluteUrlBuilder absoluteUrlBuilder)
Parameters
Type |
Name |
Description |
IOptions<ContentSettings> |
contentSettings |
|
MediaUrlGeneratorCollection |
mediaUrlGenerators |
|
IAbsoluteUrlBuilder |
absoluteUrlBuilder |
|
Methods
View Source
Declaration
public IEnumerable<MediaUrlInfo> CreateUrls(IMedia media)
Parameters
Type |
Name |
Description |
IMedia |
media |
|
Returns
View Source
Declaration
public IEnumerable<MediaUrlInfoResponseModel> CreateUrlSets(IEnumerable<IMedia> mediaItems)
Parameters
Type |
Name |
Description |
IEnumerable<IMedia> |
mediaItems |
|
Returns