Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify running the WADO Server from Visual Studio #24

Closed
Zaid-Safadi opened this issue Mar 14, 2017 · 1 comment
Closed

Simplify running the WADO Server from Visual Studio #24

Zaid-Safadi opened this issue Mar 14, 2017 · 1 comment
Assignees

Comments

@Zaid-Safadi
Copy link
Owner

Zaid-Safadi commented Mar 14, 2017

Currently once you clone the DICOMcloud code, you must create a database and update the web.config with the connection string along with the location where the images should be stored.
Also, the code structure which configures the server could be improved for better readability and customization.

This process should be enhanced such that the user can run the server immediately after cloning with no to little configuration

@Zaid-Safadi
Copy link
Owner Author

DICOMcloud WebAPI Server can run now immediately after cloning from Visual Studio 2015 as a standalone DICOMweb server with no additional configuration:

Solution proposed in this commit:

  1. Provide default value for image storage location in the web.config:
    <add key="app:PacsStorageConnection" value="|DataDirectory|\App_Data\Storage\ds" />

The server code now supports using the variable "|DataDirectory|" when reading the app:PacsStorageConnection which resolves to the .NET Environment.SpecialFolder.ApplicationData directory

  1. Database is attached to LocalDB installed with Visual Studio by setting a default value for the app:PacsDataArchieve (connectionString) in the web.config:
    <add key="app:PacsDataArchieve" value="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DB\DICOMcloud.mdf;Initial Catalog=DICOMcloud;Integrated Security=True" />

A DICOMcloud.mdf database file is added under the Resources\Database directory and is copied (only if newer) to the App_Data folder during project built. This DB is attached to the local SQL Instance installed with Visual Studio 2015 using the default connection string.

  1. The code which configure the DICOMcloud WebAPI server has been refactored in this class DICOMBuilder.cs and is structured in a way that allows inheritance and customization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant