The purpose of this application is to retrieve content from internet CDNs to be used by the CDN Server Web Application.
--Show=CDNs
- Show the upstream CDN names in the database.
--Show=Libraries
- Show the upstream CDN names in the database.
Optional Parameter
--Upstream=[name]
[,name,...] - The upstream CDN name(s) to show local libraries for.
--Show=Versions
- Show the upstream CDN names in the database.--Library=[name]
[,name,...] - The library name(s) to show versions for.
Optional Parameter
--Upstream=[name]
[,name,...] - The upstream CDN name(s) to show local libraries for.
--Show=[Files]
- Show the upstream CDN file names in the database.--Library=[name]
[,name,...] - The library name(s) to show files for.--Version=[string]
[,string,...] - The library versions(s) to show files for.--Upstream=[name]
[,name,...] - The upstream CDN name(s) to show files for.
--AddLibrary=[name]
[,name,...] - The library name(s) on the upstream CDN to be added to the database.--Upstream=[name]
[,name,...] - The upstream CDN name(s) to retrieve libraries from.
Optional Switch
--Version=[string]
[,string,...] - The specific version(s) to add. If this is not specified, then all versions will be added.
--GetNewVersions=[name]
[,name,...] - The library name(s) on the upstream CDN to be added to the database.
Optional Switch
--Upstream=[name]
[,name,...] - The upstream CDN name(s) to retrieve libraries from. If this is not specified, then new versions will be retrieved from all CDNs.
--RemoveLibrary==[name]
[,name,...] - The library name(s) to remove from the database.
Optional Switches
--Upstream=[name]
[,name,...] - The explicit upstream CDN name(s) to remove local libraries from. If this is not specified, then all matching libraries will be removed.--Version=[string]
[,string,...] - The specific version(s) to remove. If this is not specified, then all versions of matching libraries will be removed.
--ReloadLibrary=[name]
[,name,...] - The library name(s) on the upstream CDN to be reloaded.--Upstream=[name]
[,name,...] - The upstream CDN name(s) to retrieve libraries from.
Optional Switch
--Version=[string]
[,string,...] - The specific version(s) to reload. If this is not specified, then all versions of matching libraries will be reloaded.
--ReloadLibrary=[name]
[,name,...] - The library name(s) to be reloaded.--Version=[string]
[,string,...] - The specific version(s) to reload.
--ReloadExistingVersions=[name]
[,name,...] - The library name(s) on the upstream CDN to be reloaded.--Upstream=[name]
[,name,...] - The upstream CDN name(s) to retrieve libraries from.
Optional Switch
--Version=[string]
[,string,...] - The specific version(s) to reload. If this is not specified, then all versions of matching libraries will be reloaded.
--ReloadExistingVersions=[name]
[,name,...] - The library name(s) to be reloaded.--Version=[string]
[,string,...] - The specific version(s) to reload.
For a class to function as middleware for a specifice remote CDN, it must inerit from CdnGetter.Services.ContentGetterService and it must also have the
CdnGetter.Services.ContentGetterAttribute attribute, which specifies a unique GUID that identifies the corresponding UpstreamCdn
database entity and a name that describes the upstream CDN. The static UpstreamCdnServices
property of that attribute contains all the upstream CDN service types that were found.
Each ContentGetterService
implementation should have its own settings section under the main Application Settings
where the upstream CDN URL and other CDN-specific configuration can be specified.