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
agentId
uintThe DataMiner agent ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.
elementId
uintThe element ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.
channelName
stringA descriptive name for this channel, to differentiate the logging if multiple channels are logging to the same file.
dataSourceConfiguration
DataSourceConfigurationThe details needed to find and connect to the endpoint.
logger
ILoggerThe 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.