Skip to content

Commit

Permalink
Update how to create DicomWebClient in doc (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah248 authored Nov 11, 2020
1 parent 0b0abe5 commit c4bd379
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/tutorials/use-dicom-web-standard-apis-with-c#.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

This comment has been minimized.

Copy link
@santhoshiyer

santhoshiyer Jan 21, 2021

unable to figure out how to create DicomWebClient instance. I could not find this class in "fo dicom" api. what am i missing?

```

With the `DicomWebClient` we can now perform Store, Retrieve, Search, and Delete operations.
Expand Down Expand Up @@ -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.
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.

0 comments on commit c4bd379

Please sign in to comment.