Skip to content

ScriptContent class

namespace: Serenity.Web   assemblySerenity.Net.Web

Default implementation of IScriptContent.

public class ScriptContent : IScriptContent
parameter description
content The content bytes.
time The generation time.
compressionLevel The suggested compression level.

Public Members

name description
ScriptContent(…) Default implementation of IScriptContent.
BrotliContent { get; }
CanCompress { get; }
CompressedContent { get; }
Content { get; }
Hash { get; } Gets the script hash.
Time { get; } Gets the script generation time.

Exceptions

exception condition
ArgumentNullException content is null.

Remarks

Initializes a new instance of the ScriptContent class.

See Also