/// <summary> /// Read history using json details /// </summary> /// <remarks> /// Read node history 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='request'> /// The history read request /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HistoryReadResponseApiModelJToken> HistoryReadRawAsync(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadRequestApiModelJToken request, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.HistoryReadRawWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Read history using json details /// </summary> /// <remarks> /// Read node history 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='request'> /// The history read request /// </param> public static HistoryReadResponseApiModelJToken HistoryReadRaw(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadRequestApiModelJToken request) { return(operations.HistoryReadRawAsync(endpointId, request).GetAwaiter().GetResult()); }