Table of Contents

Class SmarterLinkBootstrapper

Namespace
SmarterLink.Bootstrapping
Assembly
SmarterLink.Bootstrapping.dll

Entry point for configuring and starting SmarterLink without a DI container. Configure the bootstrapper, call StartAsync() to connect, then obtain role clients via the Get*Client() methods.

public sealed class SmarterLinkBootstrapper
Inheritance
SmarterLinkBootstrapper
Inherited Members

Constructors

Creates a new bootstrapper with the provided configuration.

public SmarterLinkBootstrapper(SmarterLinkConfig config)

Parameters

config SmarterLinkConfig

Methods

Enables console logging. Must be called before StartAsync().

public void AddConsoleLogging(ConsoleLoggerOptions? options = null)

Parameters

options ConsoleLoggerOptions

Creates and returns a new DataProcessorClient. Requires StartAsync() to have been called first.

public DataProcessorClient GetDataProcessorClient()

Returns

DataProcessorClient

Creates and returns a new DataProducerClient. Requires StartAsync() to have been called first.

public DataProducerClient GetDataProducerClient()

Returns

DataProducerClient

Creates and returns a new DataStoreClient. Requires StartAsync() to have been called first.

public DataStoreClient GetDataStoreClient()

Returns

DataStoreClient

Creates and returns a new FileTransferClient. Requires StartAsync() to have been called first.

public FileTransferClient GetFileTransferClient()

Returns

FileTransferClient

Creates and returns a new HmiClient. Requires StartAsync() to have been called first.

public HmiClient GetHmiClient()

Returns

HmiClient

Connects to the MQTT broker and starts the messaging infrastructure.

public Task StartAsync()

Returns

Task