Class MediaRenderer
Inheritance
System.Object
MediaRenderer
Assembly: ImageVault.Common.dll
public static class MediaRenderer : Object
Properties
Use the url replacer to replace any required render resource
Declaration
public static Func<string, string> UrlReplacer { get; set; }
Property Value
Type |
Description |
System.Func<System.String, System.String> |
|
Methods
Declaration
public static string GetDirectRenderer(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Type |
Description |
System.String |
|
Gets the registered renderer for the supplied id (if found)
Declaration
public static IMediaRenderer GetRenderer(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Declaration
public static void RegisterRenderer(IMediaRenderer mediaRenderer)
Parameters
Render(RenderContext)
Renders the supplied media
Declaration
public static string Render(RenderContext context)
Parameters
Returns
Type |
Description |
System.String |
The rendered html
|
Renders the supplied media
Declaration
public static string RenderMedia(Media media)
Parameters
Type |
Name |
Description |
Media |
media |
The media to render
|
Returns
Type |
Description |
System.String |
|
Renders the supplied media
Declaration
public static string RenderMedia(Media media, bool dynamic)
Parameters
Type |
Name |
Description |
Media |
media |
|
System.Boolean |
dynamic |
|
Returns
Type |
Description |
System.String |
The rendered html
|
Renders the resources needed as HTML tags
Declaration
public static string RenderResources()
Returns
Type |
Description |
System.String |
|
Renders the resources for a specific renderer
Declaration
public static string RenderResources(string rendererId)
Parameters
Type |
Name |
Description |
System.String |
rendererId |
|
Returns
Type |
Description |
System.String |
|
Assigns the default renderer based on the supplied content type of the media
Declaration
public static void SetDefaultRenderer(Media media)
Parameters
Type |
Name |
Description |
Media |
media |
|