1234567891011121314151617181920212223242526272829303132333435 |
- // Copyright (c) 2012-2020 fo-dicom contributors.
- // Licensed under the Microsoft Public License (MS-PL).
- using Dicom.Network;
- using QueryRetrieve_SCP.Model;
- namespace QueryRetrieve_SCP
- {
- public static class QRServer
- {
- private static IDicomServer _server;
- public static string AETitle { get; set; }
- public static IDicomImageFinderService CreateFinderService => new StupidSlowFinderService();
- public static void Start(int port, string aet)
- {
- AETitle = aet;
- _server = DicomServer.Create<QRService>(port);
- }
- public static void Stop()
- {
- _server.Dispose();
- }
- }
- }
|