Class ProductProvider
- Namespace
- StockSharp.Installer
- Assembly
- StockSharp.Installer.dll
public class ProductProvider : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
ProductProvider
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Properties
AllowPrereleaseVersions
Allow to install pre-release versions.
public bool AllowPrereleaseVersions { get; set; }
Property Value
AutoCheckForUpdates
Whether auto update check is enabled.
public bool AutoCheckForUpdates { get; set; }
Property Value
CheckUpdatesInterval
Auto updates check interval.
public TimeSpan CheckUpdatesInterval { get; set; }
Property Value
ErrorSleepInterval
Sleep interval in case of check update errors.
public TimeSpan ErrorSleepInterval { get; set; }
Property Value
this[string]
Get product by nuget package id.
public Product this[string id] { get; }
Parameters
id
string
Property Value
LastCheckWithPrerelease
Whether last update check was with prerelease option.
public bool? LastCheckWithPrerelease { get; }
Property Value
- bool?
Products
All products.
public IEnumerable<Product> Products { get; }
Property Value
Methods
CancelUpdateCheck()
public void CancelUpdateCheck()
CheckForUpdates()
public void CheckForUpdates()
DisposeManaged()
protected override void DisposeManaged()
GetProductUpdates(long)
Get updates infor for a product.
public ProductUpdate GetProductUpdates(long productId)
Parameters
productId
long
Returns
Load(SettingsStorage, SettingsStorage, SettingsStorage)
Load provider settings.
public void Load(SettingsStorage appCacheStorage, SettingsStorage installationsStorage, SettingsStorage settingsStorage)
Parameters
appCacheStorage
SettingsStorageinstallationsStorage
SettingsStoragesettingsStorage
SettingsStorage
Exceptions
SaveAppCache()
Save applications list from db to config file.
public SettingsStorage SaveAppCache()
Returns
- SettingsStorage
SaveInstallations()
Save installed products to config file.
public SettingsStorage SaveInstallations()
Returns
- SettingsStorage
SaveSettings()
Save installer settings to config file.
public SettingsStorage SaveSettings()
Returns
- SettingsStorage
TryGetByInstallPath(string)
Try get product by install path.
public Product TryGetByInstallPath(string path)
Parameters
path
string
Returns
Events
Initialized
public event Action Initialized
Event Type
InstallStateUpdated
public event Action InstallStateUpdated
Event Type
NewProduct
public event Action<Product> NewProduct
Event Type
ProductsCacheUpdated
public event Action<Exception, bool> ProductsCacheUpdated
Event Type
RemovedProduct
public event Action<Product> RemovedProduct
Event Type
SettingsUpdated
public event Action SettingsUpdated