Search Results for

    Show / Hide Table of Contents

    Class ImageVaultClient

    Helper class for retrieving the correct client for EPiServer

    Inheritance
    System.Object
    ImageVaultClient
    Namespace: ImageVault.EPiServer
    Assembly: ImageVault.EPiServer.dll
    Syntax
    public static class ImageVaultClient : Object

    Properties

    UsePublishedMediaUrls

    Published media urls should only be used on Published pages

    Declaration
    public static bool UsePublishedMediaUrls { get; }
    Property Value
    Type Description
    System.Boolean

    If EPiServer.Editor.PageEditing.PageIsInEditMode or the current page is in EPiServer.Core.VersionStatus.DelayedPublish, this returns false.

    Methods

    GetPageClient(IClientFactory)

    Gets the correct client depending on the state of the current page

    Declaration
    public static IClient GetPageClient(IClientFactory clientFactory)
    Parameters
    Type Name Description
    IClientFactory clientFactory
    Returns
    Type Description
    IClient
    Remarks

    Checks the UsePublishedMediaUrls to determine if the GetSdkClient() or the GetCurrentUserClient() should be used.

    In This Article
    Back to top (c) Meriworks 2002-2022