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
longThis product.
handler
Func<StudioMessage, CancellationToken, ValueTask<StudioMessage>>Incoming message handler.
parent
ILogSourcetryStartReceiver
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
StudioMessagetoProductId
longtoken
CancellationToken
Returns
RunServerAsync(CancellationToken)
public Task RunServerAsync(CancellationToken token)
Parameters
token
CancellationToken
Returns
SendAsync(StudioMessage, long, CancellationToken)
public Task SendAsync(StudioMessage message, long toProductId, CancellationToken token)
Parameters
message
StudioMessagetoProductId
longtoken
CancellationToken