Table of Contents

Interface IMediaProtectionService

Namespace
CMS.Core
Assembly
CMS.Core.dll

Defines interface for service allowing the protection of URLs with resize-able media content.

public interface IMediaProtectionService
Extension Methods

Methods

GetProtectedUrl(string)

Protects the given URL against unwanted resizing with hash. URL must be pointing to Kentico endpoint for serving media files.

string GetProtectedUrl(string urlToProtect)

Parameters

urlToProtect string

URL to protect. Can be both absolute and relative.

Returns

string