Class InstallerChannel
- Namespace
- StockSharp.Installer.IPC
- Assembly
- StockSharp.Installer.IPC.dll
Message channel between applications and installer.
public class InstallerChannel : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
InstallerChannel
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
InstallerChannel(long, Func<InstallerMessage, CancellationToken, ValueTask<InstallerMessage>>, ILogSource, Func<bool>)
Create instance.
public InstallerChannel(long channelId, Func<InstallerMessage, CancellationToken, ValueTask<InstallerMessage>> handler, ILogSource parent, Func<bool> tryStartReceiver)
Parameters
channelId
longThis product.
handler
Func<InstallerMessage, CancellationToken, ValueTask<InstallerMessage>>Incoming message handler.
parent
ILogSourcetryStartReceiver
Func<bool>
Methods
DisposeManaged()
protected override void DisposeManaged()
GetResponseAsync(InstallerMessage, long, CancellationToken)
Send message and get response asynchonously.
public Task<InstallerMessage> GetResponseAsync(InstallerMessage message, long toProductId, CancellationToken token)
Parameters
message
InstallerMessagetoProductId
longtoken
CancellationToken
Returns
Exceptions
RunServerAsync(CancellationToken)
public Task RunServerAsync(CancellationToken token)
Parameters
token
CancellationToken