ConcatenatedScript class
namespace: Serenity.Web assembly: Serenity.Net.Services
A dynamic script that is formed from the concatenation of other scripts. Parts that the current user does not have permission for are not included, and the cache suffix varies based on which parts are included, so that a separate content is cached for each such combination.
public class ConcatenatedScript : DynamicScript, ICacheSuffix
| parameter | description |
|---|---|
| parts | The script parts. |
| separator | The separator. |
Public Members
| name | description |
|---|---|
| ConcatenatedScript(…) | A dynamic script that is formed from the concatenation of other scripts. Parts that the current user does not have permission for are not included, and the cache suffix varies based on which parts are included, so that a separate content is cached for each such combination. (2 constructors) |
| CacheSuffix { get; } | Gets a cache suffix that identifies which parts are included for the current user, combined with the cache suffixes of the parts themselves. Empty if no part has a permission check or a cache suffix. |
| override GetScript() |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Script parts are null. |
Remarks
Creates a new instance of the class.
See Also
- class DynamicScript
- interface ICacheSuffix
- Source: ConcatenatedScript.cs