Click or drag to resize

GuiConnectorTUnderlyingConnector Class

The synchronized connection. It wraps an object IConnector of the usual connection to all the events are arisen in the GUI thread.
Inheritance Hierarchy
SystemObject
  Disposable
    StockSharp.LoggingBaseLogSource
      StockSharp.LoggingBaseLogReceiver
        StockSharp.XamlGuiConnectorTUnderlyingConnector

Namespace:  StockSharp.Xaml
Assembly:  StockSharp.Xaml (in StockSharp.Xaml.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public class GuiConnector<TUnderlyingConnector> : BaseLogReceiver, 
	IConnector, IPersistable, ILogReceiver, ILogSource, IDisposable, 
	IMarketDataProvider, ISecurityProvider, INewsProvider, IPortfolioProvider, IPositionProvider, 
	IMessageSender
where TUnderlyingConnector : IConnector

Type Parameters

TUnderlyingConnector
The type of connection that should be synchronized.

The GuiConnectorTUnderlyingConnector type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConnectionState
Connection state.
Public propertyConnector
Unsynchronized connection object.
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from BaseLogSource.)
Public propertyExchangeBoards
List of all exchange boards, for which instruments are loaded Securities.
Public propertyId
The unique identifier of the source.
(Inherited from BaseLogSource.)
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyLogLevel
The logging level. The default is set to Inherit.
(Inherited from BaseLogSource.)
Public propertyMarketDataAdapter
Market-data adapter.
Public propertyMyTrades
Get all own trades.
Public propertyName
Source name (to distinguish in log files).
(Inherited from BaseLogSource.)
Public propertyNews
All news.
Public propertyOrderCancelFails
Get all cancellation errors.
Public propertyOrderRegisterFails
Get all registration errors.
Public propertyOrders
Get all orders.
Public propertyParent
Parent.
(Inherited from BaseLogSource.)
Public propertyPortfolios
Get all portfolios.
Public propertyPositions
Get all positions.
Public propertyRegisteredMarketDepths
Public propertyRegisteredOrderLogs
Public propertyRegisteredPortfolios
List of all portfolios, subscribed via RegisterPortfolio(Portfolio).
Public propertyRegisteredSecurities
Public propertyRegisteredTrades
Public propertySecurities
List of all loaded instruments. It should be called after event NewSecurities arisen. Otherwise the empty set will be returned.
Public propertyStopOrders
Get all stop-orders.
Public propertyTrades
Get all tick trades.
Public propertyTransactionAdapter
Transactional adapter.
Public propertyTransactionIdGenerator
Transaction id generator.
Top
Methods
  NameDescription
Public methodCancelOrder
Cancel the order.
Public methodCancelOrders
Cancel orders by filter.
Public methodConnect
Connect to trading system.
Public methodDisconnect
Disconnect from trading system.
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged
Release resources.
(Overrides Disposable.DisposeManaged.)
Protected methodDisposeNative (Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from Disposable.)
Public methodGetFilteredMarketDepth
Get filtered order book.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLevel1Fields
To get a set of available fields Level1Fields, for which there is a market data for the instrument.
Public methodGetMarketDepth
To get the quotes order book.
Public methodGetPortfolio
To get the portfolio by the name.
Public methodGetPosition
To get the position by portfolio and instrument.
Public methodGetSecurityId
Get SecurityId.
Public methodGetSecurityValue
To get the value of market data for the instrument.
Public methodGetSessionState
Get session state for required board.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load settings.
(Inherited from BaseLogSource.)
Public methodLookup
Lookup securities by criteria criteria.
Public methodLookupBoards(BoardLookupMessage)
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
Public methodLookupBoards(ExchangeBoard, IMessageAdapter, MessageOfflineModes)
To find boards that match the filter criteria. Found boards will be passed through the event LookupBoardsResult.
Public methodLookupOrders(OrderStatusMessage)
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
Public methodLookupOrders(Order, IMessageAdapter)
To find orders that match the filter criteria. Found orders will be passed through the event NewOrder.
Public methodLookupPortfolios(PortfolioLookupMessage)
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
Public methodLookupPortfolios(Portfolio, IMessageAdapter, MessageOfflineModes)
To find portfolios that match the filter criteria. Found portfolios will be passed through the event LookupPortfoliosResult.
Public methodLookupSecurities(SecurityLookupMessage)
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
Public methodLookupSecurities(Security, IMessageAdapter, MessageOfflineModes)
To find instruments that match the filter criteria. Found instruments will be passed through the event LookupSecuritiesResult.
Public methodLookupSecurity
Lookup security by identifier.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRaiseLog
To call the event Log.
(Inherited from BaseLogSource.)
Public methodRegisterFilteredMarketDepth
To start getting filtered quotes (order book) by the instrument. Quotes values are available through the event GetFilteredMarketDepth(Security).
Public methodRegisterMarketDepth
To start getting quotes (order book) by the instrument. Quotes values are available through the event MarketDepthsChanged.
Public methodRegisterNews
Subscribe on news.
Public methodRegisterOrder
Register new order.
Public methodRegisterOrderLog
Subscribe on order log for the security.
Public methodRegisterPortfolio
Subscribe on the portfolio changes.
Public methodRegisterSecurity
To start getting new information (for example, LastTrade or BestBid) by the instrument.
Public methodRegisterTrades
To start getting trades (tick data) by the instrument. New trades will come through the event NewTrades.
Public methodRequestNewsStory
Request news Story body. After receiving the event NewsChanged will be triggered.
Public methodReRegisterOrder(Order, Order)
Reregister the order.
Public methodReRegisterOrder(Order, Decimal, Decimal)
Reregister the order.
Public methodSave
Save settings.
(Inherited from BaseLogSource.)
Public methodSendInMessage
Send message.
Public methodSendOutMessage
Send outgoing message.
Public methodSubscribeBoard
Subscribe on the board changes.
Public methodSubscribeMarketData
To sign up to get market data by the instrument.
Protected methodThrowIfDisposed (Inherited from Disposable.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseLogSource.)
Public methodUnRegisterFilteredMarketDepth
To stop getting filtered quotes by the instrument.
Public methodUnRegisterMarketDepth
To stop getting quotes by the instrument.
Public methodUnRegisterNews
Unsubscribe from news.
Public methodUnRegisterOrderLog
Unsubscribe from order log for the security.
Public methodUnRegisterPortfolio
Unsubscribe from the portfolio changes.
Public methodUnRegisterSecurity
To stop getting new information.
Public methodUnRegisterTrades
To stop getting trades (tick data) by the instrument.
Public methodUnSubscribeBoard
Unsubscribe from the board changes.
Public methodUnSubscribeMarketData
To unsubscribe from getting market data by the instrument.
Top
Events
  NameDescription
Public eventConnected
Connected.
Public eventConnectedEx
Connected.
Public eventConnectionError
Connection error (for example, the connection was aborted by server).
Public eventConnectionErrorEx
Connection error (for example, the connection was aborted by server).
Public eventDisconnected
Disconnected.
Public eventDisconnectedEx
Disconnected.
Public eventError
Data process error.
Public eventLog
New debug message event.
(Inherited from BaseLogSource.)
Public eventLookupBoardsResult
Public eventLookupBoardsResult2
Public eventLookupPortfoliosResult
Public eventLookupPortfoliosResult2
Public eventLookupSecuritiesResult
Public eventLookupSecuritiesResult2
Public eventMarketDataSubscriptionFailed
Error subscription market-data.
Public eventMarketDataSubscriptionFinished
Subscription market-data finished.
Public eventMarketDataSubscriptionSucceeded
Successful subscription market-data.
Public eventMarketDataUnexpectedCancelled
Market-data subscription unexpected cancelled.
Public eventMarketDataUnSubscriptionFailed
Error unsubscription market-data.
Public eventMarketDataUnSubscriptionSucceeded
Successful unsubscription market-data.
Public eventMarketDepthChanged
Order book changed.
Public eventMarketDepthsChanged
Order books changed.
Public eventMarketTimeChanged
Server time changed ExchangeBoards. It passed the time difference since the last call of the event. The first time the event passes the value Zero.
Public eventMassOrderCanceled
Mass order cancellation event.
Public eventMassOrderCancelFailed
Mass order cancellation errors event.
Public eventNewMarketDepth
Order book received.
Public eventNewMarketDepths
Order books received.
Public eventNewMessage
Message processed Message.
Public eventNewMyTrade
Own trade received.
Public eventNewMyTrades
Own trades received.
Public eventNewNews
News received.
Public eventNewOrder
Order received.
Public eventNewOrderLogItem
Order log received.
Public eventNewOrderLogItems
Order log received.
Public eventNewOrders
Orders received.
Public eventNewPortfolio
New portfolio received.
Public eventNewPortfolios
Portfolios received.
Public eventNewPosition
New position received.
Public eventNewPositions
Positions received.
Public eventNewsChanged
News updated (news body received Story).
Public eventNewSecurities
Securities received.
Public eventNewSecurity
Security received.
Public eventNewStopOrder
Stop-order received.
Public eventNewStopOrders
Stop-orders received.
Public eventNewTrade
Tick trade received.
Public eventNewTrades
Tick trades received.
Public eventOrderCancelFailed
Order cancellation error event.
Public eventOrderChanged
Order changed (cancelled, matched).
Public eventOrderRegisterFailed
Order registration error event.
Public eventOrdersCancelFailed
Order cancellation errors event.
Public eventOrdersChanged
Orders changed (cancelled, matched).
Public eventOrdersRegisterFailed
Order registration errors event.
Public eventOrderStatusFailed
Failed order status request event.
Public eventPortfolioChanged
Portfolio changed.
Public eventPortfoliosChanged
Portfolios changed.
Public eventPositionChanged
Position changed.
Public eventPositionsChanged
Positions changed.
Public eventSecuritiesChanged
Securities changed.
Public eventSecurityChanged
Security changed.
Public eventSessionStateChanged
Session changed.
Public eventStopOrderCancelFailed
Stop-order cancellation error event.
Public eventStopOrderChanged
Stop order state change event.
Public eventStopOrderRegisterFailed
Stop-order registration error event.
Public eventStopOrdersCancelFailed
Stop-order cancellation errors event.
Public eventStopOrdersChanged
Stop orders state change event.
Public eventStopOrdersRegisterFailed
Stop-order registration errors event.
Public eventValuesChanged
Security changed.
Top
Extension Methods
  NameDescription
Public Extension MethodAddDebugLog
To record a debug message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(FuncString)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception, String)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(String, Object)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(FuncString)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(String, Object)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddLog
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddOrderErrorLog
Write order error to the log.
(Defined by TraderHelper.)
Public Extension MethodAddOrderInfoLog
Write order info to the log.
(Defined by TraderHelper.)
Public Extension MethodAddVerboseLog
To record a verbose message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(FuncString)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(String, Object)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodCancelOrders
Cancel orders by filter.
(Defined by TraderHelper.)
Public Extension MethodGetAllSecurity
Find AllSecurity instance in the specified provider.
(Defined by TraderHelper.)
Public Extension MethodGetLogLevel
Get LogLevel for the source. If the value is equal to Inherit, then parental source level is taken.
(Defined by LoggingHelper.)
Public Extension MethodGetSecurityValueT
To get the value of market data for the instrument.
(Defined by TraderHelper.)
Public Extension MethodGetSecurityValues
To get all market data values for the instrument.
(Defined by TraderHelper.)
Public Extension MethodLookupAllOverloaded.
Get all available instruments.
(Defined by TraderHelper.)
Public Extension MethodLookupAll(MessageOfflineModes)Overloaded.
Lookup securities, portfolios and orders.
(Defined by TraderHelper.)
Public Extension MethodLookupByCode
To get the instrument by the instrument code.
(Defined by TraderHelper.)
Public Extension MethodLookupById(String)Overloaded.
To get the instrument by the identifier.
(Defined by TraderHelper.)
Public Extension MethodLookupById(SecurityId)Overloaded.
To get the instrument by the identifier.
(Defined by TraderHelper.)
Public Extension MethodLookupByNativeId
To get the instrument by the system identifier.
(Defined by TraderHelper.)
Public Extension MethodLookupByPortfolioName
To get the portfolio by the code name.
(Defined by TraderHelper.)
Public Extension MethodWhenConnected
To create a rule for the event of connection established.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenConnectionLost
To create a rule for the event of connection lost.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenDisconnected
To create a rule for the event of disconnection.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenIntervalElapsed
To create a rule for the event MarketTimeChanged, activated after expiration of interval.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenNewMyTrade
To create a rule for the event of new trade occurrences.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenNewOrder
To create a rule for the event of new orders occurrences.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenTimeCome(DateTimeOffset)Overloaded.
To create a rule, activated at the exact time, specified through times.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenTimeCome(IEnumerableDateTimeOffset)Overloaded.
To create a rule, activated at the exact time, specified through times.
(Defined by MarketRuleHelper.)
Top
See Also