/// <summary>
 /// Deletes the raw data object identified by the compound key <paramref name="measurementUuid"/> and <paramref name="characteristicUuid"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="measurementUuid">The uuid of the measurement the raw data objects belongs to. </param>
 /// <param name="characteristicUuid">The uuid of the characteristic the raw data object belongs to.</param>
 /// <param name="rawDataKey">The key of the raw data object that should be deleted.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 /// <exception cref="ArgumentNullException"><paramref name="client"/> is <see langword="null" />.</exception>
 public static Task DeleteRawDataForValue([NotNull] this IRawDataServiceRestClient client, Guid measurementUuid, Guid characteristicUuid, int?rawDataKey = null, CancellationToken cancellationToken = default)
 {
     if (client == null)
     {
         throw new ArgumentNullException(nameof(client));
     }
     return(client.DeleteRawData(RawDataTargetEntityDto.CreateForValue(measurementUuid, characteristicUuid), rawDataKey, cancellationToken));
 }
        /// <summary>
        /// Deletes the raw data object identified by the <paramref name="info"/>.
        /// </summary>
        /// <param name="info">The raw data entry to delete.</param>
        /// <param name="client">The client class to use.</param>
        /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
        /// <exception cref="ArgumentNullException"><paramref name="client"/> or <paramref name="info"/> is <see langword="null" />.</exception>
        public static Task DeleteRawData([NotNull] this IRawDataServiceRestClient client, [NotNull] RawDataInformationDto info, CancellationToken cancellationToken = default)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            if (info == null)
            {
                throw new ArgumentNullException(nameof(info));
            }

            return(client.DeleteRawData(info.Target, info.Key, cancellationToken));
        }
예제 #3
0
 /// <summary>
 /// Deletes the raw data object identified by the key <paramref name="rawDataKey"/> and the part with uuid <paramref name="partUuid"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="partUuid">The uuid of the part the raw data objects belongs to.</param>
 /// <param name="rawDataKey">The key of the raw data object which should be deleted.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task DeleteRawDataForPart(this IRawDataServiceRestClient client, Guid partUuid, int?rawDataKey = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.DeleteRawData(RawDataTargetEntity.CreateForPart(partUuid), rawDataKey, cancellationToken));
 }
예제 #4
0
 /// <summary>
 /// Deletes the raw data object identified by the compound key <paramref name="measurementUuid"/> and <paramref name="characteristicUuid"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="measurementUuid">The uuid of the measurement the raw data objects belongs to. </param>
 /// <param name="characteristicUuid">The uuid of the characteristic the raw data object belongs to.</param>
 /// <param name="rawDataKey">The key of the raw data object that should be deleted.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task DeleteRawDataForValue(this IRawDataServiceRestClient client, Guid measurementUuid, Guid characteristicUuid, int?rawDataKey = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.DeleteRawData(RawDataTargetEntity.CreateForValue(measurementUuid, characteristicUuid), rawDataKey, cancellationToken));
 }
예제 #5
0
 /// <summary>
 /// Deletes the raw data object identified by the <paramref name="info"/>.
 /// </summary>
 /// <param name="info">The raw data entry to delete.</param>
 /// <param name="client">The client class to use.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task DeleteRawData(this IRawDataServiceRestClient client, RawDataInformation info, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.DeleteRawData(info.Target, info.Key, cancellationToken));
 }