Interface INativeIdStorage
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
Security native identifier storage.
public interface INativeIdStorage
- Extension Methods
Methods
Clear(string)
Clear storage.
void Clear(string storageName)
Parameters
storageName
stringStorage name.
Get(string)
Get native security identifiers for storage.
(SecurityId secId, object nativeId)[] Get(string storageName)
Parameters
storageName
stringStorage name.
Returns
- (SecurityId secId, object nativeId)[]
Security identifiers.
Init()
Initialize the storage.
IDictionary<string, Exception> Init()
Returns
- IDictionary<string, Exception>
Possible errors with storage names. Empty dictionary means initialization without any issues.
RemoveByNativeId(string, object, bool)
Remove by native identifier.
bool RemoveByNativeId(string storageName, object nativeId, bool isPersistable = true)
Parameters
storageName
stringStorage name.
nativeId
objectNative (internal) trading system security id.
isPersistable
boolSave the identifier as a permanent.
Returns
- bool
Operation result.
RemoveBySecurityId(string, SecurityId, bool)
Remove by security identifier.
bool RemoveBySecurityId(string storageName, SecurityId securityId, bool isPersistable = true)
Parameters
storageName
stringStorage name.
securityId
SecurityIdSecurity identifier.
isPersistable
boolSave the identifier as a permanent.
Returns
- bool
Operation result.
TryAdd(string, SecurityId, object, bool)
Try add native security identifier to storage.
bool TryAdd(string storageName, SecurityId securityId, object nativeId, bool isPersistable = true)
Parameters
storageName
stringStorage name.
securityId
SecurityIdSecurity identifier.
nativeId
objectNative (internal) trading system security id.
isPersistable
boolSave the identifier as a permanent.
Returns
TryGetByNativeId(string, object)
Try get security identifier by native identifier.
SecurityId? TryGetByNativeId(string storageName, object nativeId)
Parameters
Returns
- SecurityId?
Security identifier.
TryGetBySecurityId(string, SecurityId)
Try get native security identifier by identifier.
object TryGetBySecurityId(string storageName, SecurityId securityId)
Parameters
storageName
stringStorage name.
securityId
SecurityIdSecurity identifier.
Returns
- object
Native (internal) trading system security id.
Events
Added
The new native security identifier added to storage.
event Action<string, SecurityId, object> Added