コード例 #1
0
 /// <summary>
 /// Insert historic values
 /// </summary>
 /// <remarks>
 /// Insert historic values 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 insert request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryUpdateResponseApiModel> HistoryInsertValuesAsync(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelInsertValuesDetailsApiModel request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryInsertValuesWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Insert historic values
 /// </summary>
 /// <remarks>
 /// Insert historic values 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 insert request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryInsertValues(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelInsertValuesDetailsApiModel request)
 {
     return(operations.HistoryInsertValuesAsync(endpointId, request).GetAwaiter().GetResult());
 }