예제 #1
0
        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);
        }
예제 #2
0
 public virtual void AddRoleSelection(RoleSelection roleSel)
 {
     roleSels.Add(roleSel.SOPClassUID, roleSel);
 }