Class Product
- Namespace
- StockSharp.Installer
- Assembly
- StockSharp.Installer.dll
Product.
public class Product : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
Product
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Properties
Author
Product author.
public long? Author { get; }
Property Value
- long?
AvailableUpdate
Available update or null if not available.
public ProductUpdate? AvailableUpdate { get; }
Property Value
AvailableVersion
Product available version.
public ProductVersion AvailableVersion { get; }
Property Value
CanBuy
public bool CanBuy { get; }
Property Value
CanInstall
public bool CanInstall { get; }
Property Value
CanModify
public bool CanModify { get; }
Property Value
CanRate
Whether this user can rate this product.
public bool CanRate { get; }
Property Value
CanRemove
public bool CanRemove { get; }
Property Value
CanRepair
public bool CanRepair { get; }
Property Value
CanRequestRefund
public bool CanRequestRefund { get; }
Property Value
CanRequestTrial
public bool CanRequestTrial { get; }
Property Value
CanUpdate
public bool CanUpdate { get; }
Property Value
ContentType
Product content type.
public ProductContentTypes2? ContentType { get; }
Property Value
- ProductContentTypes2?
Description
Product description.
public string Description { get; }
Property Value
DocUrl
Document url.
public string DocUrl { get; }
Property Value
DownloadCount
Download count.
public int? DownloadCount { get; }
Property Value
- int?
Feedbacks
Product feedback messages.
public ProductFeedback[] Feedbacks { get; }
Property Value
- ProductFeedback[]
InstallContentFiles
Whether installer need to install content files from main package.
public bool InstallContentFiles { get; }
Property Value
InstallFramework
Product install framework.
public NuGetFramework InstallFramework { get; }
Property Value
- NuGetFramework
Installation
Existing product installation.
public ProductInstallation Installation { get; }
Property Value
IsActiveSubscription
public bool IsActiveSubscription { get; }
Property Value
IsConnector
Whether this product is connector.
public bool IsConnector { get; }
Property Value
IsDesigner
public bool IsDesigner { get; }
Property Value
IsDesignerSchema
public bool IsDesignerSchema { get; }
Property Value
IsExpiredSubscription
public bool IsExpiredSubscription { get; }
Property Value
IsFreeProduct
public bool IsFreeProduct { get; }
Property Value
IsIndependentProduct
Wheter this product is independent product (not a plugin or connector).
public bool IsIndependentProduct { get; }
Property Value
IsInstalled
public bool IsInstalled { get; }
Property Value
IsInstaller
public bool IsInstaller { get; }
Property Value
IsMyProduct
Whether current user is the owner of this product.
public bool IsMyProduct { get; }
Property Value
IsPackageAvailable
Whether package is available in nuget.
public bool IsPackageAvailable { get; }
Property Value
IsPaidProduct
public bool IsPaidProduct { get; }
Property Value
IsPurchasedConnector
public bool IsPurchasedConnector { get; }
Property Value
IsRefundRequested
public bool IsRefundRequested { get; }
Property Value
IsRequiredConnectors
Whether this product requires connectors.
public bool IsRequiredConnectors { get; }
Property Value
IsSourceCode
Whether this product is source code.
public bool IsSourceCode { get; }
Property Value
IsStandaloneApp
Whether this product is a standalone application.
public bool IsStandaloneApp { get; }
Property Value
IsTrialRequested
public bool IsTrialRequested { get; }
Property Value
IsUpdateAvailable
public bool IsUpdateAvailable { get; }
Property Value
IsVersionAvailable
True if both package available and product version is in db.
public bool IsVersionAvailable { get; }
Property Value
MainPackageId
Product id (nuget package id).
public string MainPackageId { get; }
Property Value
PluginType
Plugin type or null.
public Product.PluginTypes? PluginType { get; }
Property Value
ProductDomain
Product domain info.
public ProductDomain ProductDomain { get; }
Property Value
- ProductDomain
ProductKey
Product unique id.
public long ProductKey { get; }
Property Value
ProductName
Product name.
public string ProductName { get; }
Property Value
Rating
Rating.
public double? Rating { get; }
Property Value
SortOrder
Sort order.
public int SortOrder { get; }
Property Value
Tags
Product tags.
public string Tags { get; }
Property Value
Topic
Description.
public Topic Topic { get; }
Property Value
- Topic
WasPurchased
public bool WasPurchased { get; }
Property Value
WasRated
Whether the product was rated by this user.
public bool? WasRated { get; }
Property Value
- bool?
WebProduct
Product description message from db.
public Product WebProduct { get; }
Property Value
- Product
Methods
CanInstallInNonEmptyFolder()
public bool CanInstallInNonEmptyFolder()
Returns
EnsureProductDetailsAsync(bool, CancellationToken)
Load product info for details page.
public Task EnsureProductDetailsAsync(bool forceUpdate, CancellationToken token)
Parameters
forceUpdate
booltoken
CancellationToken
Returns
Exceptions
GetInstallSubdirectory(string)
public string GetInstallSubdirectory(string filePathInPackage)
Parameters
filePathInPackage
string
Returns
GetPluginParentAppName(PluginTypes?)
Get app name for plugin type.
public static string GetPluginParentAppName(Product.PluginTypes? type)
Parameters
type
Product.PluginTypes?
Returns
Exceptions
HasAddIn(string)
Whether this product has adding with specified id.
public bool HasAddIn(string addInId)
Parameters
addInId
string
Returns
InstallAsync(ProductVersion, string, CancellationToken)
Install product.
public Task InstallAsync(ProductVersion version, string dir, CancellationToken token)
Parameters
version
ProductVersiondir
stringtoken
CancellationToken
Returns
Exceptions
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
RemoveAsync(CancellationToken)
Remove product.
public Task RemoveAsync(CancellationToken token)
Parameters
token
CancellationToken
Returns
Exceptions
RepairAsync(ProductVersion, CancellationToken)
Repair product.
public Task RepairAsync(ProductVersion version, CancellationToken token)
Parameters
version
ProductVersiontoken
CancellationToken
Returns
Exceptions
RequestRefund(CancellationToken)
public Task RequestRefund(CancellationToken token)
Parameters
token
CancellationToken
Returns
RequestTrial(CancellationToken)
public Task RequestTrial(CancellationToken token)
Parameters
token
CancellationToken
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
UpdateAsync(ProductVersion, bool, CancellationToken)
Update product.
public Task UpdateAsync(ProductVersion version, bool backupAppSettings, CancellationToken token)
Parameters
version
ProductVersionbackupAppSettings
booltoken
CancellationToken
Returns
Exceptions
Events
InstalledVersionChanged
Invoked when installed version has changed.
public event Action InstalledVersionChanged
Event Type
Refresh
Invoked when the product was updated.
public event Action Refresh