Click or drag to resize

TraderHelperAddAdapterTAdapter Method

Create IMessageAdapter.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static Connector AddAdapter<TAdapter>(
	this Connector connector,
	Action<TAdapter> init
)
where TAdapter : IMessageAdapter

Parameters

connector
Type: StockSharp.AlgoConnector
The class to create connections to trading systems.
init
Type: SystemActionTAdapter
Initialize TAdapter.

Type Parameters

TAdapter
Adapter type.

Return Value

Type: Connector
The class to create connections to trading systems.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Connector. 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