Table of Contents

Class StudioChannel

Namespace
StockSharp.Studio.IPC
Assembly
StockSharp.Studio.IPC.dll

Message channel between S# applications.

public class StudioChannel : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
StudioChannel
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

StudioChannel(long, Func<StudioMessage, CancellationToken, ValueTask<StudioMessage>>, ILogSource, Func<bool>)

Create instance.

public StudioChannel(long channelId, Func<StudioMessage, CancellationToken, ValueTask<StudioMessage>> handler, ILogSource parent, Func<bool> tryStartReceiver)

Parameters

channelId long

This product.

handler Func<StudioMessage, CancellationToken, ValueTask<StudioMessage>>

Incoming message handler.

parent ILogSource
tryStartReceiver Func<bool>

Methods

DisposeManaged()

protected override void DisposeManaged()

GetResponseAsync(StudioMessage, long, CancellationToken)

Send message and get response asynchonously.

public Task<StudioMessage> GetResponseAsync(StudioMessage message, long toProductId, CancellationToken token)

Parameters

message StudioMessage
toProductId long
token CancellationToken

Returns

Task<StudioMessage>

RunServerAsync(CancellationToken)

public Task RunServerAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

Task

SendAsync(StudioMessage, long, CancellationToken)

public Task SendAsync(StudioMessage message, long toProductId, CancellationToken token)

Parameters

message StudioMessage
toProductId long
token CancellationToken

Returns

Task