Class ProductProvider
Inheritance
ProductProvider
Implements
Ecng.Serialization.IPersistable
Assembly: StockSharp.Installer.dll
Syntax
public class ProductProvider : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable, IInstallerChannelHandler
Properties
AllowPrereleaseVersions
Allow to install pre-release versions.
Declaration
public bool AllowPrereleaseVersions { get; set; }
Property Value
AutoCheckForUpdates
Whether auto update check is enabled.
Declaration
public bool AutoCheckForUpdates { get; set; }
Property Value
CheckUpdatesInterval
Auto updates check interval.
Declaration
public TimeSpan CheckUpdatesInterval { get; set; }
Property Value
ErrorSleepInterval
Sleep interval in case of check update errors.
Declaration
public TimeSpan ErrorSleepInterval { get; set; }
Property Value
Item[String]
Get product by nuget package id.
Declaration
public Product this[string id] { get; }
Parameters
Type |
Name |
Description |
String |
id |
|
Property Value
LastCheckWithPrerelease
Whether last update check was with prerelease option.
Declaration
public Nullable<bool> LastCheckWithPrerelease { get; }
Property Value
Products
Declaration
public IEnumerable<Product> Products { get; }
Property Value
Methods
CancelUpdateCheck()
Declaration
public void CancelUpdateCheck()
CheckForUpdates()
Declaration
public void CheckForUpdates()
DisposeManaged()
Declaration
protected override void DisposeManaged()
Load(SettingsStorage, SettingsStorage, SettingsStorage)
Declaration
public void Load(SettingsStorage appCacheStorage, SettingsStorage installationsStorage, SettingsStorage settingsStorage)
Parameters
Type |
Name |
Description |
Ecng.Serialization.SettingsStorage |
appCacheStorage |
|
Ecng.Serialization.SettingsStorage |
installationsStorage |
|
Ecng.Serialization.SettingsStorage |
settingsStorage |
|
Exceptions
SaveAppCache()
Save applications list from db to config file.
Declaration
public SettingsStorage SaveAppCache()
Returns
Type |
Description |
Ecng.Serialization.SettingsStorage |
|
SaveInstallations()
Save installed products to config file.
Declaration
public SettingsStorage SaveInstallations()
Returns
Type |
Description |
Ecng.Serialization.SettingsStorage |
|
SaveSettings()
Save installer settings to config file.
Declaration
public SettingsStorage SaveSettings()
Returns
Type |
Description |
Ecng.Serialization.SettingsStorage |
|
TryGetByInstallPath(String)
Try get product by install path.
Declaration
public Product TryGetByInstallPath(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Events
ExitRequested
Declaration
public event Action ExitRequested
Event Type
Initialized
Declaration
public event Action Initialized
Event Type
InstallStateUpdated
Declaration
public event Action InstallStateUpdated
Event Type
NewProduct
Declaration
public event Action<Product> NewProduct
Event Type
ProductsCacheUpdated
Declaration
public event Action<Exception, bool> ProductsCacheUpdated
Event Type
RemovedProduct
Declaration
public event Action<Product> RemovedProduct
Event Type
SettingsUpdated
Declaration
public event Action SettingsUpdated
Event Type
Explicit Interface Implementations
IInstallerChannelHandler.GetInstallerResponseAsync(InstallerMessage, CancellationToken)
Declaration
Task<InstallerMessage> IInstallerChannelHandler.GetInstallerResponseAsync(InstallerMessage request, CancellationToken token)
Parameters
Returns
Implements
Ecng.Serialization.IPersistable
Extension Methods