/// <summary> /// Update the given DicomServer using the Destination Actor Configuration. /// </summary> /// <param name="serverActorName">DicomServer Actor Name.</param> /// <param name="clientActorType">DicomClient Actor Type.</param> /// <param name="commonConfig">Common Configuration.</param> /// <param name="peerToPeerConfigCollection">Peer to Peer Configuration collection.</param> protected void UpdateDicomServer(ActorName serverActorName, ActorTypeEnum clientActorType, CommonConfig commonConfig, BasePeerToPeerConfigCollection peerToPeerConfigCollection) { foreach (BasePeerToPeerConfig basePeerToPeerConfig in peerToPeerConfigCollection) { if ((basePeerToPeerConfig is DicomPeerToPeerConfig) && (basePeerToPeerConfig.FromActorName.TypeId == serverActorName.TypeId) && (basePeerToPeerConfig.ToActorName.Type == clientActorType)) { DicomServer dicomServer = GetDicomServer(basePeerToPeerConfig.ToActorName); if (dicomServer != null) { dicomServer.UpdateConfig(commonConfig, (DicomPeerToPeerConfig)basePeerToPeerConfig); } } } }