From e502a7b99f62e2148f76216e1be244236d640170 Mon Sep 17 00:00:00 2001 From: Neil South Date: Wed, 6 Sep 2023 16:45:30 +0100 Subject: [PATCH] fix for optional values in controller Signed-off-by: Neil South --- .../Services/Http/DicomWeb/StowController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/InformaticsGateway/Services/Http/DicomWeb/StowController.cs diff --git a/src/InformaticsGateway/Services/Http/DicomWeb/StowController.cs b/src/InformaticsGateway/Services/Http/DicomWeb/StowController.cs old mode 100644 new mode 100755 index 8037b721c..6d4dc34bb --- a/src/InformaticsGateway/Services/Http/DicomWeb/StowController.cs +++ b/src/InformaticsGateway/Services/Http/DicomWeb/StowController.cs @@ -65,7 +65,7 @@ public StowController(IServiceScopeFactory serviceScopeFactory) [ProducesResponseType(typeof(string), StatusCodes.Status415UnsupportedMediaType)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status507InsufficientStorage)] - public async Task StoreInstances(string aet = "", string workflowName = "") + public async Task StoreInstances(string? aet = "", string? workflowName = "") { return await StoreInstances(string.Empty, aet, workflowName).ConfigureAwait(false); } @@ -84,12 +84,12 @@ public async Task StoreInstances(string aet = "", string workflow [ProducesResponseType(typeof(string), StatusCodes.Status415UnsupportedMediaType)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status507InsufficientStorage)] - public async Task StoreInstancesToStudy(string studyInstanceUid, string aet = "", string workflowName = "") + public async Task StoreInstancesToStudy(string? studyInstanceUid, string? aet = "", string? workflowName = "") { return await StoreInstances(studyInstanceUid, aet, workflowName).ConfigureAwait(false); } - private async Task StoreInstances(string studyInstanceUid, string aet, string workflowName) + private async Task StoreInstances(string? studyInstanceUid, string? aet, string? workflowName) { var correlationId = Guid.NewGuid().ToString(); using var logger = _logger.BeginScope(new LoggingDataDictionary { { "CorrelationId", correlationId }, { "StudyInstanceUID", studyInstanceUid }, { "Workflow", workflowName } });