public DicomPresContext(byte pcid, SopClass abstractSyntax) { _pcid = pcid; _result = DicomPresContextResult.Proposed; _roles = DicomRoleSelection.Disabled; _abstract = abstractSyntax; if (abstractSyntax.Uid.Length == 0) throw new DicomException("Invalid abstract syntax for presentation context, UID is zero length."); _transfers = new List<TransferSyntax>(); }
public DicomPresContext(byte pcid, SopClass abstractSyntax) { _pcid = pcid; _result = DicomPresContextResult.Proposed; _roles = DicomRoleSelection.Disabled; _abstract = abstractSyntax; if (abstractSyntax.Uid.Length == 0) { throw new DicomException("Invalid abstract syntax for presentation context, UID is zero length."); } _transfers = new List <TransferSyntax>(); }
/// <summary> /// Enables or disables Role Selection. It also sets the User Role and Provider Role, if enabled, for the specified Presentation Context. /// </summary> /// <param name="pcid">Presentation Context ID</param> /// <param name="roles">Supported Roles</param> public void SetRoleSelect(byte pcid, DicomRoleSelection roles) { GetPresentationContext(pcid).SetRoleSelect(roles); }
public void SetRoleSelect(DicomRoleSelection roles) { _roles = roles; }