ClassUtils
Internal use only
Definition
Namespace:Telerik.Reporting.Services.Engine
Assembly:Telerik.Reporting.dll
Syntax:
public static class Utils
Inheritance: objectUtils
Methods
AddRecipients(string, Action<string>)
Resolves the recipients from a comma or semicolon string
Declaration
public static void AddRecipients(string rawRecipients, Action<string> addRecipient)
Parameters
rawRecipients
string
Comma or semicolon separated list of recipients.
addRecipient
Action<string>
Action to execute on a recipient.
TryAddCacheControlHeaderToResponse(ICollection<string>, string, Action<string, string>)
Attempts to add a "Cache-Control" header to the response if it does not already exist.
Declaration
public static void TryAddCacheControlHeaderToResponse(ICollection<string> headerKeys, string resourceName, Action<string, string> addCallback)
Parameters
headerKeys
ICollection<string>
A collection of existing headers in the response.
resourceName
string
The name of the resource used to determine the cache expiration policy.
addCallback
Action<string, string>
A callback that adds the "Cache-Control" header to the response along with a value computed by CacheMaxAge(string).
Remarks
If a "Cache-Control" header already exists in headerKeys, the method
writes a warning log and does not update the header.