BaseOptimizerSettings Class

Summary

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

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.Issues addin
NotNull<BaseOptimizerSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<BaseOptimizerSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator 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