Click or drag to resize

StorageHelperSynchronizeSecurities Method

Synchronize securities with storage.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static void SynchronizeSecurities(
	this IEnumerable<IMarketDataDrive> drives,
	ISecurityStorage securityStorage,
	IExchangeInfoProvider exchangeInfoProvider,
	Action<Security> newSecurity,
	Action<int, int> updateProgress,
	Func<bool> isCancelled,
	ILogReceiver logsReceiver
)

Parameters

drives
Type: System.Collections.GenericIEnumerableIMarketDataDrive
Storage drives.
securityStorage
Type: StockSharp.Algo.StoragesISecurityStorage
Securities meta info storage.
exchangeInfoProvider
Type: StockSharp.Algo.StoragesIExchangeInfoProvider
Exchanges and trading boards provider.
newSecurity
Type: SystemActionSecurity
The handler through which a new instrument will be passed.
updateProgress
Type: SystemActionInt32, Int32
The handler through which a progress change will be passed.
isCancelled
Type: SystemFuncBoolean
The handler which returns an attribute of search cancel.
logsReceiver
Type: StockSharp.LoggingILogReceiver
Logs receiver.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableIMarketDataDrive. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also