/// <summary> /// Read historic processed values at specified times /// </summary> /// <remarks> /// Read processed history values of a node if available using historic access. /// The endpoint must be activated and connected and the module client and /// server must trust each other. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='endpointId'> /// The identifier of the activated endpoint. /// </param> /// <param name='body'> /// The history read request /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HistoricValueApiModelHistoryReadResponseApiModel> HistoryReadValuesAsync(this IAzureOpcHistoryClient operations, string endpointId, ReadValuesDetailsApiModelHistoryReadRequestApiModel body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.HistoryReadValuesWithHttpMessagesAsync(endpointId, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Read historic processed values at specified times /// </summary> /// <remarks> /// Read processed history values of a node if available using historic access. /// The endpoint must be activated and connected and the module client and /// server must trust each other. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='endpointId'> /// The identifier of the activated endpoint. /// </param> /// <param name='body'> /// The history read request /// </param> public static HistoricValueApiModelHistoryReadResponseApiModel HistoryReadValues(this IAzureOpcHistoryClient operations, string endpointId, ReadValuesDetailsApiModelHistoryReadRequestApiModel body) { return(operations.HistoryReadValuesAsync(endpointId, body).GetAwaiter().GetResult()); }