Exemple #1
0
 /// <summary>
 /// Update node history using raw json
 /// </summary>
 /// <remarks>
 /// Update node history 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 update request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryUpdateResponseApiModel> HistoryUpdateRawAsync(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelJToken request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryUpdateRawWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Update node history using raw json
 /// </summary>
 /// <remarks>
 /// Update node history 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 update request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryUpdateRaw(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelJToken request)
 {
     return(operations.HistoryUpdateRawAsync(endpointId, request).GetAwaiter().GetResult());
 }