Show / Hide Table of Contents

Class ProductProvider

Inheritance
Object
BaseLogSource
BaseLogReceiver
ProductProvider
Implements
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
IDisposable
IInstallerChannelHandler
Inherited Members
BaseLogReceiver.ILogReceiver.AddLog(LogMessage)
BaseLogSource.RaiseLog(LogMessage)
BaseLogSource.ToString()
BaseLogSource.Load(SettingsStorage)
BaseLogSource.Save(SettingsStorage)
BaseLogSource.Id
BaseLogSource.Name
BaseLogSource.Parent
BaseLogSource.LogLevel
BaseLogSource.CurrentTime
BaseLogSource.IsRoot
BaseLogSource.ParentRemoved
BaseLogSource.Log
Namespace: StockSharp.Installer
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
Type Description
Boolean

AutoCheckForUpdates

Whether auto update check is enabled.

Declaration
public bool AutoCheckForUpdates { get; set; }
Property Value
Type Description
Boolean

CheckUpdatesInterval

Auto updates check interval.

Declaration
public TimeSpan CheckUpdatesInterval { get; set; }
Property Value
Type Description
TimeSpan

ErrorSleepInterval

Sleep interval in case of check update errors.

Declaration
public TimeSpan ErrorSleepInterval { get; set; }
Property Value
Type Description
TimeSpan

Item[String]

Get product by nuget package id.

Declaration
public Product this[string id] { get; }
Parameters
Type Name Description
String id
Property Value
Type Description
Product

LastCheckWithPrerelease

Whether last update check was with prerelease option.

Declaration
public Nullable<bool> LastCheckWithPrerelease { get; }
Property Value
Type Description
Nullable<Boolean>

Products

All products.

Declaration
public IEnumerable<Product> Products { get; }
Property Value
Type Description
IEnumerable<Product>

Methods

CancelUpdateCheck()

Declaration
public void CancelUpdateCheck()

CheckForUpdates()

Declaration
public void CheckForUpdates()

DisposeManaged()

Declaration
protected override void DisposeManaged()

Load(SettingsStorage, SettingsStorage, SettingsStorage)

Load provider settings.

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
Type Condition
InvalidOperationException

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
Type Description
Product

Events

ExitRequested

Declaration
public event Action ExitRequested
Event Type
Type Description
Action

Initialized

Declaration
public event Action Initialized
Event Type
Type Description
Action

InstallStateUpdated

Declaration
public event Action InstallStateUpdated
Event Type
Type Description
Action

NewProduct

Declaration
public event Action<Product> NewProduct
Event Type
Type Description
Action<Product>

ProductsCacheUpdated

Declaration
public event Action<Exception, bool> ProductsCacheUpdated
Event Type
Type Description
Action<Exception, Boolean>

RemovedProduct

Declaration
public event Action<Product> RemovedProduct
Event Type
Type Description
Action<Product>

SettingsUpdated

Declaration
public event Action SettingsUpdated
Event Type
Type Description
Action

Explicit Interface Implementations

IInstallerChannelHandler.GetInstallerResponseAsync(InstallerMessage, CancellationToken)

Declaration
Task<InstallerMessage> IInstallerChannelHandler.GetInstallerResponseAsync(InstallerMessage request, CancellationToken token)
Parameters
Type Name Description
InstallerMessage request
CancellationToken token
Returns
Type Description
Task<InstallerMessage>

Implements

Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
System.IDisposable
IInstallerChannelHandler

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾