Esempio n. 1
0
		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>();
		}
Esempio n. 2
0
 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;
		}
Esempio n. 5
0
 /// <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);
 }
Esempio n. 6
0
 public void SetRoleSelect(DicomRoleSelection roles)
 {
     _roles = roles;
 }