ATAS
Loading...
Searching...
No Matches
OFT.Core.BaseConnectorSettings< T > Class Template Referenceabstract
Inheritance diagram for OFT.Core.BaseConnectorSettings< T >:
[legend]
Collaboration diagram for OFT.Core.BaseConnectorSettings< T >:
[legend]

Public Member Functions

IDataFeedConnector CreateConnector (string dataPath)
 
void ApplySettings (IDataFeedConnector connector)
 
virtual bool CheckSupported (out string? errorMessage)
 Checks if connector is supported on this machine.
Parameters
errorMessageNull if supported otherwise contains error text
Returns
true if no problems detected, false if not supported

 
override string ToString ()
 
IDataFeedConnector CreateConnector (string dataPath)
 
void ApplySettings (IDataFeedConnector connector)
 
bool CheckSupported (out string? errorMessage)
 Checks if connector is supported on this machine.
 

Protected Member Functions

 BaseConnectorSettings ()
 
abstract IDataFeedConnector OnCreateConnector (string dataPath)
 
abstract void OnApplySettings (IDataFeedConnector connector)
 
void RaisePropertyChanged (string propertyName)
 
bool SetProperty< TValue > (ref TValue storage, TValue newValue, string propertyName, Action< TValue, TValue > onChanged=null)
 
override IDataFeedConnector OnCreateConnector (string dataPath)
 
override void OnApplySettings (IDataFeedConnector connector)
 
abstract void OnApplySettings (T connector)
 

Properties

string Type [get, set]
 
string Description [get]
 
Uri Logo [get]
 
Guid Id [get, set]
 
virtual string DisplayName [get, set]
 
string Name [get, set]
 
bool IsMarketDataEnabled [get, set]
 
bool IsAutoConnectEnabled [get, set]
 
bool AllowUpdatePositionsPnL [get, set]
 
TimeOnly? RefreshSecuritiesTime [get, set]
 
abstract ConnectorFeatures Features [get]
 
virtual ConnectorSettingsTypes SettingsTypes [get]
 
virtual bool IsDemo [get]
 Indicates that connector uses TestNet environment.
 
virtual MarketDataDelayPeriods MarketDataDelayPeriod [get]
 
- Properties inherited from OFT.Core.IConnectorSettings
string Type [get]
 
string Description [get]
 
Uri Logo [get]
 
Guid Id [get, set]
 
string Name [get, set]
 
bool IsMarketDataEnabled [get, set]
 
bool IsAutoConnectEnabled [get, set]
 
ConnectorFeatures Features [get]
 
ConnectorSettingsTypes SettingsTypes [get]
 
bool IsDemo [get]
 Indicates that connector uses TestNet environment.
 
MarketDataDelayPeriods MarketDataDelayPeriod [get]
 

Events

PropertyChangedEventHandler PropertyChanged
 

Constructor & Destructor Documentation

◆ BaseConnectorSettings()

Member Function Documentation

◆ ApplySettings()

void OFT.Core.BaseConnectorSettings< T >.ApplySettings ( IDataFeedConnector  connector)

◆ CheckSupported()

virtual bool OFT.Core.BaseConnectorSettings< T >.CheckSupported ( out string?  errorMessage)
virtual

Checks if connector is supported on this machine.

Parameters
errorMessageNull if supported otherwise contains error text
Returns
true if no problems detected, false if not supported

Implements OFT.Core.IConnectorSettings.

◆ CreateConnector()

IDataFeedConnector OFT.Core.BaseConnectorSettings< T >.CreateConnector ( string  dataPath)

◆ OnApplySettings() [1/3]

abstract void OFT.Core.BaseConnectorSettings< T >.OnApplySettings ( IDataFeedConnector  connector)
protectedpure virtual

◆ OnApplySettings() [2/3]

override void OFT.Core.BaseConnectorSettings< T >.OnApplySettings ( IDataFeedConnector  connector)
protected

◆ OnApplySettings() [3/3]

abstract void OFT.Core.BaseConnectorSettings< T >.OnApplySettings ( connector)
protectedpure virtual

◆ OnCreateConnector() [1/2]

abstract IDataFeedConnector OFT.Core.BaseConnectorSettings< T >.OnCreateConnector ( string  dataPath)
protectedpure virtual

◆ OnCreateConnector() [2/2]

override IDataFeedConnector OFT.Core.BaseConnectorSettings< T >.OnCreateConnector ( string  dataPath)
protected

◆ RaisePropertyChanged()

void OFT.Core.BaseConnectorSettings< T >.RaisePropertyChanged ( string  propertyName)
protected

◆ SetProperty< TValue >()

bool OFT.Core.BaseConnectorSettings< T >.SetProperty< TValue > ( ref TValue  storage,
TValue  newValue,
string  propertyName,
Action< TValue, TValue >  onChanged = null 
)
protected

◆ ToString()

override string OFT.Core.BaseConnectorSettings< T >.ToString ( )

Property Documentation

◆ AllowUpdatePositionsPnL

bool OFT.Core.BaseConnectorSettings< T >.AllowUpdatePositionsPnL
getset

◆ Description

string OFT.Core.BaseConnectorSettings< T >.Description
get

◆ DisplayName

virtual string OFT.Core.BaseConnectorSettings< T >.DisplayName
getset

◆ Features

◆ Id

◆ IsAutoConnectEnabled

bool OFT.Core.BaseConnectorSettings< T >.IsAutoConnectEnabled
getset

◆ IsDemo

virtual bool OFT.Core.BaseConnectorSettings< T >.IsDemo
get

Indicates that connector uses TestNet environment.

Implements OFT.Core.IConnectorSettings.

◆ IsMarketDataEnabled

bool OFT.Core.BaseConnectorSettings< T >.IsMarketDataEnabled
getset

◆ Logo

◆ MarketDataDelayPeriod

virtual MarketDataDelayPeriods OFT.Core.BaseConnectorSettings< T >.MarketDataDelayPeriod
get

◆ Name

string OFT.Core.BaseConnectorSettings< T >.Name
getset

◆ RefreshSecuritiesTime

TimeOnly? OFT.Core.BaseConnectorSettings< T >.RefreshSecuritiesTime
getset

◆ SettingsTypes

◆ Type

string OFT.Core.BaseConnectorSettings< T >.Type
getset

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler OFT.Core.BaseConnectorSettings< T >.PropertyChanged

The documentation for this class was generated from the following file: