Class MarketplaceService
- Namespace
- Dynamicweb.Marketplace
- Assembly
- Dynamicweb.Marketplace.dll
public static class MarketplaceService
- Inheritance
-
MarketplaceService
- Inherited Members
Fields
PresetSearch
public const string PresetSearch = "Owner:\"Dynamicweb-Dev\" Tag:\"Dynamicweb\" \"Preset\""
Field Value
Methods
CompareVersions(string?, string?)
public static bool CompareVersions(string? v1, string? v2)
Parameters
Returns
GetAllAddins()
public static IEnumerable<AddinInfo> GetAllAddins()
Returns
GetContextName(string, string)
public static string? GetContextName(string name, string manager)
Parameters
Returns
GetDependencies(string, string, string?)
Gets all the dependencies a package may have with their required version, possible installed version and if its compatible with the current installation or not.
public static IEnumerable<AddinInfo> GetDependencies(string package, string provider, string? version = null)
Parameters
packagestringThe package to find dependencies for
providerstringThe provider to use
versionstringThe version of the dependency, if none are specified it will default to latest
Returns
GetDependency(string, string, string?)
Gets dependency information about the specified addin
public static ResolvedPackage? GetDependency(string package, string manager, string? version = null)
Parameters
Returns
- ResolvedPackage
resolvedPackage
Exceptions
- ValidationException
Thrown if package is not valid for install
Install(string, string?, string)
public static void Install(string package, string? version, string manager)
Parameters
Install(string, string?, string, bool)
Looks for dependencies of the specified addin in and uninstalls those. Then uninstalls the specified addin before reinstalling all the dependencies.
public static void Install(string package, string? version, string manager, bool queue)
Parameters
InstallInfo(string, string)
Gets information about the specified running addin
public static InstallInfo? InstallInfo(string name, string manager)
Parameters
Returns
- InstallInfo
installInfo
InstallViaManager(string, string?, string, bool)
Installs the specified addin without looking at potential dependency conflicts.
public static void InstallViaManager(string package, string? version, string manager, bool queue)
Parameters
IsAddinInstalled(string?, string?, string)
public static bool IsAddinInstalled(string? installedVersion, string? addinVersion, string addinProvider)
Parameters
Returns
Search(string)
Gets a list of all available Addins
public static IEnumerable<AddinInfo> Search(string manager)
Parameters
managerstring
Returns
- IEnumerable<AddinInfo>
addins
Search(string?, int, int, string)
Searches for addins with specified name
public static IEnumerable<AddinInfo> Search(string? name, int take, int skip, string manager)
Parameters
namestringPartial name to search for
takeintMaximum number of addins to return
skipintSkip this number before starting to return results
managerstring
Returns
- IEnumerable<AddinInfo>
addins
SearchSpecific(string, string)
Gets information about a specific addin
public static AddinInfo? SearchSpecific(string name, string manager)
Parameters
Returns
- AddinInfo
addin