public PacsDataSender(IConfiguration configuration, DicomFileQueue dicomFileQueue) { _configuration = configuration; var host = _configuration.GetSection("Destination:Host").Value; var scpAeTitle = _configuration.GetSection("Destination:AeTitle").Value; var port = Int32.Parse(_configuration.GetSection("Destination:Port").Value); _clientSend = new Dicom.Network.Client.DicomClient(host, port, false, "SCU", scpAeTitle); _dicomFileQueue = dicomFileQueue; }
static void Main(string[] args) { var config = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build(); DicomFileQueue dicomFileQueue = new DicomFileQueue(); PacsDataSender pacsDataSender = new PacsDataSender(config, dicomFileQueue); Task dataSender = new Task(() => _ = pacsDataSender.SendToPacs()); dataSender.Start(); PacsDataQuerier pacsDataQuerier = new PacsDataQuerier(config, dicomFileQueue); _ = pacsDataQuerier.DataQuery(); Thread.Sleep(Timeout.Infinite); return; }
public PacsDataQuerier(IConfiguration configuration, DicomFileQueue dicomFileQueue) { _configuration = configuration; _dicomFileQueue = dicomFileQueue; }