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
SmarterLinkBootstrapper(SmarterLinkConfig)
Creates a new bootstrapper with the provided configuration.
public SmarterLinkBootstrapper(SmarterLinkConfig config)
Parameters
configSmarterLinkConfig
Methods
AddConsoleLogging(ConsoleLoggerOptions?)
Enables console logging. Must be called before StartAsync().
public void AddConsoleLogging(ConsoleLoggerOptions? options = null)
Parameters
optionsConsoleLoggerOptions
GetDataProcessorClient()
Creates and returns a new DataProcessorClient. Requires StartAsync() to have been called first.
public DataProcessorClient GetDataProcessorClient()
Returns
GetDataProducerClient()
Creates and returns a new DataProducerClient. Requires StartAsync() to have been called first.
public DataProducerClient GetDataProducerClient()
Returns
GetDataStoreClient()
Creates and returns a new DataStoreClient. Requires StartAsync() to have been called first.
public DataStoreClient GetDataStoreClient()
Returns
GetFileTransferClient()
Creates and returns a new FileTransferClient. Requires StartAsync() to have been called first.
public FileTransferClient GetFileTransferClient()
Returns
GetHmiClient()
Creates and returns a new HmiClient. Requires StartAsync() to have been called first.
public HmiClient GetHmiClient()
Returns
StartAsync()
Connects to the MQTT broker and starts the messaging infrastructure.
public Task StartAsync()