Constructor GnmiClient
- Namespace
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Api
- Assembly
- Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll
GnmiClient(uint, uint, string, DataSourceConfiguration, ILogger)
Constructs a gNMI/gRPC client that will use the CommunicationGateway DxM to connect to a device. The connection is only set up when Connect() is called.
public GnmiClient(uint agentId, uint elementId, string channelName, DataSourceConfiguration dataSourceConfiguration, ILogger logger)
Parameters
agentIduintThe DataMiner agent ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.
elementIduintThe element ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.
channelNamestringA descriptive name for this channel, to differentiate the logging if multiple channels are logging to the same file.
dataSourceConfigurationDataSourceConfigurationThe details needed to find and connect to the endpoint.
loggerILoggerThe interface that will be called for any logging.
Exceptions
- ArgumentException
The channelName should not be null or empty or whitespace.
- ArgumentException
The value should be a NATS token-friendly name.