/// <summary> /// Add the default message handlers - include the Information Models that should be used. /// </summary> /// <param name="informationModels">Query Retrieve Information Models.</param> public void AddDefaultMessageHandlers(QueryRetrieveInformationModels informationModels) { // add the CFindHandler with the Information Models CFindHandler cFindHandler = new CFindHandler(informationModels); AddToBack(cFindHandler); // add the CMoveHandler with the Information Models CMoveHandler cMoveHandler = new CMoveHandler(informationModels); AddToBack(cMoveHandler); // add the CGetHandler with the Information Models CGetHandler cGetHandler = new CGetHandler(informationModels); AddToBack(cGetHandler); }
/// <summary> /// Add the default message handlers - include the Information Models that should be used. /// </summary> /// <param name="informationModels">Query Retrieve Information Models.</param> public void AddDefaultMessageHandlers(QueryRetrieveInformationModels informationModels) { // add the CFindHandler with the Information Models CFindHandler cFindHandler = new CFindHandler(); if (informationModels.PatientRoot != null) { cFindHandler.PatientRootInformationModel = informationModels.PatientRoot; } if (informationModels.StudyRoot != null) { cFindHandler.StudyRootInformationModel = informationModels.StudyRoot; } if (informationModels.PatientStudyOnly != null) { cFindHandler.PatientStudyOnlyInformationModel = informationModels.PatientStudyOnly; } cFindHandler.RefreshInformationModelBeforeUse = true; AddToBack(cFindHandler); // add the CMoveHandler with the Information Models CMoveHandler cMoveHandler = new CMoveHandler(); if (informationModels.PatientRoot != null) { cMoveHandler.PatientRootInformationModel = informationModels.PatientRoot; } if (informationModels.StudyRoot != null) { cMoveHandler.StudyRootInformationModel = informationModels.StudyRoot; } if (informationModels.PatientStudyOnly != null) { cMoveHandler.PatientStudyOnlyInformationModel = informationModels.PatientStudyOnly; } cMoveHandler.RefreshInformationModelBeforeUse = true; AddToBack(cMoveHandler); // add the CGetHandler with the Information Models CGetHandler cGetHandler = new CGetHandler(); if (informationModels.PatientRoot != null) { cGetHandler.PatientRootInformationModel = informationModels.PatientRoot; } if (informationModels.StudyRoot != null) { cGetHandler.StudyRootInformationModel = informationModels.StudyRoot; } if (informationModels.PatientStudyOnly != null) { cGetHandler.PatientStudyOnlyInformationModel = informationModels.PatientStudyOnly; } cGetHandler.RefreshInformationModelBeforeUse = true; AddToBack(cGetHandler); }