BaseOptimizerSettings Class

Summary

The settings to use with when optimzing images
graph BT Type-->Base0["Object"] Type["BaseOptimizerSettings"] class Type type-node Derived0["KrakenOptimizerSettings"]-->Type click Derived0 "/api/Cake.ImageOptimizer/KrakenOptimizerSettings" Derived1["PunyPngOptimizerSettings"]-->Type click Derived1 "/api/Cake.ImageOptimizer/PunyPngOptimizerSettings"

Syntax

public class BaseOptimizerSettings

Constructors

Properties

Name Value Summary
FileSize int
Gets or sets the maximum file size to optimize.
Timeout int
Gets or sets the maximum timespan for the request.

Extension Methods

Name Value Summary
Dump<BaseOptimizerSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseOptimizerSettings>(BaseOptimizerSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseOptimizerSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseOptimizerSettings>(string) void
Requires the Cake.Issues addin
ThrowIfNull<BaseOptimizerSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseOptimizerSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin