Table of Contents

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 long

This product.

handler Func<InstallerMessage, CancellationToken, ValueTask<InstallerMessage>>

Incoming message handler.

parent ILogSource
tryStartReceiver 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 InstallerMessage
toProductId long
token CancellationToken

Returns

Task<InstallerMessage>

Exceptions

ArgumentNullException

RunServerAsync(CancellationToken)

public Task RunServerAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

Task