private RoleSelection NegotiateRoleSelection(RoleSelection offered) { bool scu = offered.scu(); bool scp = false; RoleSelection accept = GetRoleSelection(offered.SOPClassUID); if (accept != null) { scu = offered.scu() && accept.scu(); scp = offered.scp() && accept.scp(); } return new RoleSelection(offered.SOPClassUID, scu, scp); }
public virtual void AddRoleSelection(RoleSelection roleSel) { roleSels.Add(roleSel.SOPClassUID, roleSel); }