Class ImageHandler
Image Handler abstract class.
Namespace: DotNetNuke.Services.GeneratedImage
Assembly: DotNetNuke.dll
Syntax
public abstract class ImageHandler : IHttpHandler
Constructors
| Improve this Doc View SourceImageHandler()
Initializes a new instance of the ImageHandler class.
Declaration
protected ImageHandler()
Properties
| Improve this Doc View SourceAllowedDomains
Gets or sets list of Domains who are allowed to use the imagehandler when security is enabled.
Declaration
public string[] AllowedDomains { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
AllowStandalone
Image Handler abstract class.
Declaration
public bool AllowStandalone { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ClientCacheExpiration
Gets or sets the client-side cache expiration time.
Declaration
public TimeSpan ClientCacheExpiration { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
ContentType
Gets or sets the type of the result image. The handler will return ouput with MIME type matching this content.
Declaration
public ImageFormat ContentType { get; set; }
Property Value
Type | Description |
---|---|
ImageFormat |
EnableClientCache
Gets or sets a value indicating whether enables client-side caching of the result.
Declaration
public bool EnableClientCache { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableIPCount
Gets or sets a value indicating whether enables block mechanism for DDOS by referring IP.
Declaration
public bool EnableIPCount { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableServerCache
Gets or sets a value indicating whether enables server-side caching of the result.
Declaration
public bool EnableServerCache { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ImageCompression
Gets or sets the image compression encoding for the result image. Default is 50L.
Declaration
public long ImageCompression { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
ImageTransforms
Gets a list of image transforms that will be applied successively to the image.
Declaration
protected List<ImageTransform> ImageTransforms { get; }
Property Value
Type | Description |
---|---|
List<ImageTransform> |
IPCountMaxCount
Gets or sets the maximum amount of images an IP address is allowed to generate in the defined purge interval.
Declaration
public int IPCountMaxCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IPCountPurgeInterval
Gets or sets timespan for resetting the blocking.
Declaration
public TimeSpan IPCountPurgeInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
IsReusable
Image Handler abstract class.
Declaration
public virtual bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LogSecurity
Image Handler abstract class.
Declaration
public bool LogSecurity { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGenerateImage(NameValueCollection)
Image Handler abstract class.
Declaration
public abstract ImageInfo GenerateImage(NameValueCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
NameValueCollection | parameters |
Returns
Type | Description |
---|---|
ImageInfo |
ProcessRequest(HttpContext)
Image Handler abstract class.
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context |