Loading...
Searching...
No Matches
OFT.Core.BaseConnectorSettings< T, TSelf > Class Template Referenceabstract
Inheritance diagram for OFT.Core.BaseConnectorSettings< T, TSelf >:
[legend]
Collaboration diagram for OFT.Core.BaseConnectorSettings< T, TSelf >:
[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

 
bool HasSameCredentials (IConnectorSettings other)
 Checks if this connector has the same credentials as another connector. Also verifies that the connector types match.
 
override string ToString ()
 
IDataFeedConnector CreateConnector (string dataPath)
 
void ApplySettings (IDataFeedConnector connector)
 
bool CheckSupported (out string? errorMessage)
 Checks if connector is supported on this machine.
 
bool HasSameCredentials (IConnectorSettings other)
 Checks if this connector has the same credentials as another connector. Also verifies that the connector types match.
 

Protected Member Functions

 BaseConnectorSettings ()
 
abstract bool CompareCredentials (IConnectorSettings other)
 Compares credentials with another connector of the same type. The caller (HasSameCredentials) already guarantees that other is the same Type.
 
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)
 
sealed override bool CompareCredentials (IConnectorSettings other)
 
abstract void OnApplySettings (T connector)
 
abstract bool CompareCredentials (TSelf other)
 

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, TSelf >.ApplySettings ( IDataFeedConnector  connector)

◆ CheckSupported()

virtual bool OFT.Core.BaseConnectorSettings< T, TSelf >.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.

◆ CompareCredentials() [1/3]

abstract bool OFT.Core.BaseConnectorSettings< T, TSelf >.CompareCredentials ( IConnectorSettings  other)
protectedpure virtual

Compares credentials with another connector of the same type. The caller (HasSameCredentials) already guarantees that other is the same Type.

Override examples:

  • Login-based: => this.HaveSameLogin(other);
  • Key-based: => Key.HaveSameValue(other.Key);
  • No credentials: => false;

Implemented in ATAS.DataFeedsCore.BasketConnectorSettings< TDataFeedSettings, TTradingSettings, TSelf >.

◆ CompareCredentials() [2/3]

sealed override bool OFT.Core.BaseConnectorSettings< T, TSelf >.CompareCredentials ( IConnectorSettings  other)
protected

◆ CompareCredentials() [3/3]

abstract bool OFT.Core.BaseConnectorSettings< T, TSelf >.CompareCredentials ( TSelf  other)
protectedpure virtual

◆ CreateConnector()

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

◆ HasSameCredentials()

bool OFT.Core.BaseConnectorSettings< T, TSelf >.HasSameCredentials ( IConnectorSettings  other)

Checks if this connector has the same credentials as another connector. Also verifies that the connector types match.

Implements OFT.Core.IConnectorSettings.

◆ OnApplySettings() [1/3]

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

◆ OnApplySettings() [2/3]

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

◆ OnApplySettings() [3/3]

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

◆ OnCreateConnector() [1/2]

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

◆ OnCreateConnector() [2/2]

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

◆ RaisePropertyChanged()

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

◆ SetProperty< TValue >()

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

◆ ToString()

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

Property Documentation

◆ AllowUpdatePositionsPnL

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

◆ Description

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

◆ DisplayName

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

◆ Features

abstract ConnectorFeatures OFT.Core.BaseConnectorSettings< T, TSelf >.Features
get

◆ Id

Guid OFT.Core.BaseConnectorSettings< T, TSelf >.Id
getset

◆ IsAutoConnectEnabled

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

◆ IsDemo

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

Indicates that connector uses TestNet environment.

Implements OFT.Core.IConnectorSettings.

◆ IsMarketDataEnabled

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

◆ Logo

Uri OFT.Core.BaseConnectorSettings< T, TSelf >.Logo
get

◆ MarketDataDelayPeriod

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

◆ Name

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

◆ RefreshSecuritiesTime

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

◆ SettingsTypes

virtual ConnectorSettingsTypes OFT.Core.BaseConnectorSettings< T, TSelf >.SettingsTypes
get

◆ Type

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

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler OFT.Core.BaseConnectorSettings< T, TSelf >.PropertyChanged

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