Exemplo n.º 1
0
        public static void Start(int port, string aet)
        {
            AETitle = aet;
            _server = DicomServer.Create <WorklistService>(port);

            _itemsLoaderTimer = new Timer(state =>
            {
                var newWorklistItems = CreateItemsSourceService.GetAllCurrentWorklistItems();
                CurrentWorklistItems = newWorklistItems;
            }, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
        }
Exemplo n.º 2
0
 public static void Start(int port, string aet)
 {
     AETitle = aet;
     _server = DicomServer.Create <Worklist_SCP.WorklistService>(port);
     // every 30 seconds the worklist source is queried and the current list of items is cached in _currentWorklistItems
     _itemsLoaderTimer = new Timer((state) =>
     {
         var newWorklistItems = CreateItemsSourceService.GetAllCurrentWorklistItems();
         CurrentWorklistItems = newWorklistItems;
     }, null, TimeSpan.Zero, TimeSpan.FromSeconds(30));
 }