Beispiel #1
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));
 }
Beispiel #2
0
 /// <summary>
 /// Fetches raw data for the part with <paramref name="partUuid"/> and raw data index <paramref name="rawDataKey"/>.
 /// </summary>
 /// <param name="client">The client class to use.</param>
 /// <param name="partUuid">The uuid of the part to fetch the raw data object for.</param>
 /// <param name="rawDataKey">The unique key that identifies the raw data object for the specified part.</param>
 /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
 public static Task <byte[]> GetRawDataForPart(this IRawDataServiceRestClient client, Guid partUuid, int rawDataKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(client.GetRawData(RawDataTargetEntity.CreateForPart(partUuid), rawDataKey, cancellationToken: cancellationToken));
 }