Exemple #1
0
 internal static void DeleteFromStore(string referenceKey, IStorageManager store)
 {
     if (!(store == null || string.IsNullOrEmpty(referenceKey)))
     {
         store.DeleteData(new S3StorageReference(referenceKey));
     }
 }
Exemple #2
0
        private void DeleteMessagePayloadFromStore(string receiptHandle)
        {
            _logger.Debug("DeleteMessagePayloadFromStore.");

            var s3Key = GetValueFromReceiptHandleByMarker(receiptHandle, SQSConstants.S3_KEY_MARKER);

            try
            {
                _logger.Debug("s3Key");
                _storageClient.DeleteData(s3Key);
                _logger.Info("OK");
            }
            catch (Exception e)
            {
                _logger.Error(e);
            }
        }