Click or drag to resize

ClientAsset Class

A versioned client-side asset (CSS or JavaScript library). This is the single source of truth shared by the Web Report Server shell and the report rendering engine, so a library version is declared once. Physical files are pinned and restored by libman.json into wwwroot/lib for the web application, and copied into Repository/Views/lib for report rendering.
Inheritance Hierarchy
SystemObject
  Seal.ModelClientAsset

Namespace: Seal.Model
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.0.0+c1250b26c169a4ba4d702dc7579506e87ba2cd3a
Syntax
C#
public class ClientAsset

The ClientAsset type exposes the following members.

Constructors
 NameDescription
Public methodClientAsset Creates a client asset definition.
Top
Properties
 NameDescription
Public propertyCdn Optional CDN URL, used by the rendering engine when the repository is not configured as local.
Public propertyPath Path relative to the web root / Views folder, e.g. "lib/bootstrap/css/bootstrap.min.css". Resolved against wwwroot by the web application, and against Repository/Views by the rendering engine (see Report.AttachCSSPath / AttachScriptPath).
Public propertyTypeCSS or Script.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also