Class InMemoryMessageAdapterProvider
- Namespace
- StockSharp.Configuration
- Assembly
- StockSharp.Configuration.dll
In memory configuration message adapter's provider.
public class InMemoryMessageAdapterProvider : IMessageAdapterProvider
- Inheritance
-
InMemoryMessageAdapterProvider
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
InMemoryMessageAdapterProvider(IEnumerable<IMessageAdapter>, Type)
Initialize InMemoryMessageAdapterProvider.
public InMemoryMessageAdapterProvider(IEnumerable<IMessageAdapter> currentAdapters, Type transportAdapter = null)
Parameters
currentAdapters
IEnumerable<IMessageAdapter>All currently available adapters.
transportAdapter
Type
Properties
CurrentAdapters
All currently available adapters.
public virtual IEnumerable<IMessageAdapter> CurrentAdapters { get; }
Property Value
PossibleAdapters
All possible adapters.
public virtual IEnumerable<IMessageAdapter> PossibleAdapters { get; }
Property Value
Methods
CreateStockSharpAdapters(IdGenerator, string, SecureString)
Create adapters for StockSharp server connections.
public virtual IEnumerable<IMessageAdapter> CreateStockSharpAdapters(IdGenerator transactionIdGenerator, string login, SecureString password)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
login
stringLogin.
password
SecureStringPassword.
Returns
- IEnumerable<IMessageAdapter>
Adapters for StockSharp server connections.
CreateTransportAdapter(IdGenerator)
Create adapter for client-server communication.
public virtual IMessageAdapter CreateTransportAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Returns
- IMessageAdapter
Message adapter.