public override void ProcessTrigger(Object trigger) { try { BeforeProcessTrigger(trigger); DicomMessageCollectionPresentationContexts typeCastTrigger = trigger as DicomMessageCollectionPresentationContexts; if (typeCastTrigger != null) { SendAssociation(typeCastTrigger.dicomMessageCollection, (PresentationContext[])typeCastTrigger.presentationContexts.ToArray(typeof(PresentationContext))); } } catch { } finally { AfterProcessTrigger(trigger); CheckForNewResultsFile(); } }
public void Trigger(DicomMessageCollection dicomMessageCollection, params PresentationContext[] presentationContexts) { DicomMessageCollectionPresentationContexts trigger = new DicomMessageCollectionPresentationContexts(dicomMessageCollection, presentationContexts); base.Trigger(trigger); }