// 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(port); } public static void Stop() { _server.Dispose(); } } }