예제 #1
0
        private async Task <bool> UploadBlob(ILogger log, byte[] bytes, string fileName, string stopId, string runId)
        {
            try
            {
                log.LogInformation($"Uploading to blob: {stopId} : {runId}");
                await blobUtilities.UploadBlobJson(bytes, fileName, _blobContainerClient); //Upload json as Blob to Azure Storage Container

                return(true);
            }
            catch (Exception ex)
            {
                log.LogError($"Exception: {ex} --> occurred during UploadBlob with stop id {stopId} : {runId}");
                return(false);
            }
        }