CdnProvider Class

Summary

The name of the provider to use for the library acquisition.
Assembly
Cake.LibMan.dll
Namespace
Cake.LibMan
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["CdnProvider"] class Type type-node

Syntax

public sealed class CdnProvider : Enum

Fields

Name Constant Value Summary
cdnjs 1
The #1 free and open source CDN built to make life easier for developers. https://cdnjs.com
static
Default 0
Default cdn provider. Produces a blank argument
static
filesystem 2
The filesystem provider allows you to copy files from local file system, network drives and custom URIs.
static
jsdelivr 4
A free, fast, and reliable Open Source CDN for npm and GitHub
static
unpkg 8
A fast, global content delivery network for everything on npm. Use it to quickly and easily load any file from any package using a URL.
static
value__

Extension Methods

Name Value Summary
Dump<CdnProvider>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CdnProvider>(CdnProvider[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CdnProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<CdnProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<CdnProvider>(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<CdnProvider>(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
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin