Table of Contents

Interface IAnyProtocolBus

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Defines operations for anyprotocol bus.

public interface IAnyProtocolBus

Properties

IsStarted

Gets the is started.

bool IsStarted { get; }

Property Value

bool

true when is started applies; otherwise, false.

State

Indicates state.

AnyProtocolBusState State { get; }

Property Value

AnyProtocolBusState

The state.

Methods

StartAsync(CancellationToken)

Performs the start async operation.

ValueTask StartAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token used to cancel the operation.

Returns

ValueTask

A task that represents the asynchronous operation.

StopAsync(CancellationToken)

Performs the stop async operation.

ValueTask StopAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token used to cancel the operation.

Returns

ValueTask

A task that represents the asynchronous operation.