Class ImageVaultClient
Helper class for retrieving the correct client for EPiServer
Inheritance
System.Object
ImageVaultClient
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public static class ImageVaultClient
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()
Gets the correct client depending on the state of the current page
Declaration
public static IClient GetPageClient()
Returns
Type | Description |
---|---|
IClient |
Remarks
Checks the UsePublishedMediaUrls to determine if the GetSdkClient() or the GetCurrentUserClient() should be used.