Search Results for

    Show / Hide Table of Contents

    Class MediaRenderer

    Inheritance
    System.Object
    MediaRenderer
    Namespace: ImageVault.Common.Html
    Assembly: ImageVault.Common.dll
    Syntax
    public static class MediaRenderer : Object

    Properties

    UrlReplacer

    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

    GetDirectRenderer(String)

    Gets the direct renderer

    Declaration
    public static string GetDirectRenderer(string rendererId)
    Parameters
    Type Name Description
    System.String rendererId
    Returns
    Type Description
    System.String

    GetRenderer(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
    Type Description
    IMediaRenderer

    RegisterRenderer(IMediaRenderer)

    Declaration
    public static void RegisterRenderer(IMediaRenderer mediaRenderer)
    Parameters
    Type Name Description
    IMediaRenderer mediaRenderer

    Render(RenderContext)

    Renders the supplied media

    Declaration
    public static string Render(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context
    Returns
    Type Description
    System.String

    The rendered html

    RenderMedia(Media)

    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

    RenderMedia(Media, Boolean)

    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

    RenderResources()

    Renders the resources needed as HTML tags

    Declaration
    public static string RenderResources()
    Returns
    Type Description
    System.String

    RenderResources(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

    SetDefaultRenderer(Media)

    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
    In This Article
    Back to top (c) Meriworks 2002-2022