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
- 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()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
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