Table of Contents

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)

public InMemoryMessageAdapterProvider(IEnumerable<IMessageAdapter> currentAdapters, Type transportAdapter = null)

Parameters

currentAdapters IEnumerable<IMessageAdapter>

All currently available adapters.

transportAdapter Type

CreateTransportAdapter(IdGenerator)

Properties

CurrentAdapters

All currently available adapters.

public virtual IEnumerable<IMessageAdapter> CurrentAdapters { get; }

Property Value

IEnumerable<IMessageAdapter>

PossibleAdapters

All possible adapters.

public virtual IEnumerable<IMessageAdapter> PossibleAdapters { get; }

Property Value

IEnumerable<IMessageAdapter>

Methods

CreateStockSharpAdapters(IdGenerator, string, SecureString)

Create adapters for StockSharp server connections.

public virtual IEnumerable<IMessageAdapter> CreateStockSharpAdapters(IdGenerator transactionIdGenerator, string login, SecureString password)

Parameters

transactionIdGenerator IdGenerator

Transaction id generator.

login string

Login.

password SecureString

Password.

Returns

IEnumerable<IMessageAdapter>

Adapters for StockSharp server connections.

CreateTransportAdapter(IdGenerator)

Create adapter for client-server communication.

public virtual IMessageAdapter CreateTransportAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Transaction id generator.

Returns

IMessageAdapter

Message adapter.