Exemplo n.º 1
0
        private async Task <XElement> GetChannelPropertiesAsync(int sensorId, int channelId, CancellationToken token)
        {
            var parameters = new ChannelPropertiesParameters(sensorId, channelId);

            return(await RequestEngine.ExecuteRequestAsync(parameters, r => ChannelSettings.GetChannelXml(r, channelId), token).ConfigureAwait(false));
        }
Exemplo n.º 2
0
        private XElement GetChannelProperties(int sensorId, int channelId, CancellationToken token)
        {
            var parameters = new ChannelPropertiesParameters(sensorId, channelId);

            return(RequestEngine.ExecuteRequest(parameters, r => ChannelSettings.GetChannelXml(r, channelId), token));
        }