Ejemplo 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>();
		}
Ejemplo 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>();
 }
Ejemplo n.º 3
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);
		}
Ejemplo n.º 4
0
		public void SetRoleSelect(DicomRoleSelection roles) {
			_roles = roles;
		}
Ejemplo 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);
 }
Ejemplo n.º 6
0
 public void SetRoleSelect(DicomRoleSelection roles)
 {
     _roles = roles;
 }