Exemplo n.º 1
0
        public async Task DeleteAsset(string id)
        {
            await _blob.Delete(id);

            try
            {
                await _blob.Delete($"{id}-s");
            } catch { }
        }
Exemplo n.º 2
0
        public async Task CleanupQueue(string path)
        {
            try
            {
                await _blobQueue.Delete(path);
            }
            catch (Exception ex)
            {
                await _log.Save(new OrchestrationLog()
                {
                    Level   = LogLevel.Error,
                    Message = $"Failed to remove blob to queue: {path}",
                });

                throw new OrchestrationException(OrchestrationErrorType.QueueCleanupError, $"{path} | {ex.Message}");
            }
        }