Class ConfigurationService
Connects to a server to retrieve configurable data.
Implements
Namespace: Unity.DigitalTwins.Live.Sdk.Services.Implementations
Assembly: solution.dll
Syntax
public class ConfigurationService : IConfigurationService
Constructors
ConfigurationService(EnvironmentSettings, IServiceHttpClientWrapper)
Creates an instance of ConfigurationService.
Declaration
public ConfigurationService(EnvironmentSettings environmentSettings, IServiceHttpClientWrapper serviceHttpClientWrapper)
Parameters
Type | Name | Description |
---|---|---|
EnvironmentSettings | environmentSettings | The EnvironmentSettings instance. |
IServiceHttpClientWrapper | serviceHttpClientWrapper | The IServiceHttpClientWrapper implementation. |
Methods
GetDeviceSummaryAsync(String)
Retrieves a DeviceSummary asynchronously.
Declaration
public async Task<DeviceSummary> GetDeviceSummaryAsync(string deviceType)
Parameters
Type | Name | Description |
---|---|---|
String | deviceType | The target device type. |
Returns
Type | Description |
---|---|
Task<DeviceSummary> | The DeviceSummary. |
GetTimeSeriesPlotAsync(String)
Retrieves a TimeSeriesPlotConfiguration asynchronously.
Declaration
public async Task<TimeSeriesPlotConfiguration> GetTimeSeriesPlotAsync(string telemetryKey)
Parameters
Type | Name | Description |
---|---|---|
String | telemetryKey | The target key value. |
Returns
Type | Description |
---|---|
Task<TimeSeriesPlotConfiguration> |