Table of Contents

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

bool

AutoCheckForUpdates

Whether auto update check is enabled.

public bool AutoCheckForUpdates { get; set; }

Property Value

bool

CheckUpdatesInterval

Auto updates check interval.

public TimeSpan CheckUpdatesInterval { get; set; }

Property Value

TimeSpan

ErrorSleepInterval

Sleep interval in case of check update errors.

public TimeSpan ErrorSleepInterval { get; set; }

Property Value

TimeSpan

this[string]

Get product by nuget package id.

public Product this[string id] { get; }

Parameters

id string

Property Value

Product

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

IEnumerable<Product>

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

ProductUpdate

Load(SettingsStorage, SettingsStorage, SettingsStorage)

Load provider settings.

public void Load(SettingsStorage appCacheStorage, SettingsStorage installationsStorage, SettingsStorage settingsStorage)

Parameters

appCacheStorage SettingsStorage
installationsStorage SettingsStorage
settingsStorage SettingsStorage

Exceptions

InvalidOperationException

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

Product

Events

Initialized

public event Action Initialized

Event Type

Action

InstallStateUpdated

public event Action InstallStateUpdated

Event Type

Action

NewProduct

public event Action<Product> NewProduct

Event Type

Action<Product>

ProductsCacheUpdated

public event Action<Exception, bool> ProductsCacheUpdated

Event Type

Action<Exception, bool>

RemovedProduct

public event Action<Product> RemovedProduct

Event Type

Action<Product>

SettingsUpdated

public event Action SettingsUpdated

Event Type

Action