diff --git a/docs/tutorials/use-dicom-web-standard-apis-with-c#.md b/docs/tutorials/use-dicom-web-standard-apis-with-c#.md index a217372418..70fb6b6754 100644 --- a/docs/tutorials/use-dicom-web-standard-apis-with-c#.md +++ b/docs/tutorials/use-dicom-web-standard-apis-with-c#.md @@ -27,9 +27,10 @@ Once you have deployed an instance of the Medical Imaging Server for DICOM, retr After you have deployed your Medical Imaging Server for DICOM, you will create a 'DicomWebClient'. Run the following code snippet to create `DicomWebClient` which we will be using for the rest of the tutorial. You will also need to install the fo-dicom nuget package into your console application. ```c# -string webServerUrl = "{Your DicomWeb Server URL}"; -Uri baseAddress = new Uri(webServerUrl); -IDicomWebClient client = new DicomWebClient(baseAddress); +string webServerUrl ="{Your DicomWeb Server URL}" +var httpClient = new HttpClient(); +httpClient.BaseAddress = new Uri(webServerUrl); +IDicomWebClient client = new DicomWebClient(httpClient); ``` With the `DicomWebClient` we can now perform Store, Retrieve, Search, and Delete operations. @@ -333,4 +334,4 @@ _Details:_ DicomWebResponse response = await client.DeleteStudyAsync(studyInstanceUid); ``` -This deletes the blue-circle instance (it is the only element left in the series) from the server. If it is successful the response status code contains no content. \ No newline at end of file +This deletes the blue-circle instance (it is the only element left in the series) from the server. If it is successful the response status code contains no content.