public override IList<SupportedSop> GetSupportedSopClasses() { if (_list == null) { _list = new List<SupportedSop>(); var storageAbstractSyntaxList = new List<SopClass>(); using (var ctx = new PacsContext()) { storageAbstractSyntaxList.AddRange( ctx.SupportedSopClasses.ToList().Select( sopClass => SopClass.GetSopClass(sopClass.SopClassUid))); } foreach (var abstractSyntax in storageAbstractSyntaxList) { var supportedSop = new SupportedSop {SopClass = abstractSyntax}; supportedSop.AddSyntax(TransferSyntax.ExplicitVrLittleEndian); supportedSop.AddSyntax(TransferSyntax.ImplicitVrLittleEndian); _list.Add(supportedSop); } } return _list; }
/// <summary> /// Public default constructor. Implements the Verification SOP Class. /// </summary> public CEchoScp() { var sop = new SupportedSop {SopClass = SopClass.VerificationSopClass}; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); _list.Add(sop); }
private static IEnumerable<SupportedSop> GetSupportedSops() { var sop = new SupportedSop() { SopClass = SopClass.StudyRootQueryRetrieveInformationModelFind }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); yield return sop; }
public WorklistScp() { var sop = new SupportedSop { SopClass = SopClass.ModalityWorklistInformationModelFind }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); _list.Add(sop); }
public MppsScp() { var sop = new SupportedSop { SopClass = SopClass.ModalityPerformedProcedureStepSopClass }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); _list.Add(sop); }
private static IEnumerable<SupportedSop> GetSupportedSops() { var sop = new SupportedSop() { SopClass = SopClass.VerificationSopClass }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); yield return sop; }
public CMoveScp() { var sop = new SupportedSop() { SopClass = SopClass.PatientRootQueryRetrieveInformationModelMove }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); _list.Add(sop); sop = new SupportedSop() { SopClass = SopClass.StudyRootQueryRetrieveInformationModelMove }; sop.SyntaxList.Add(TransferSyntax.ExplicitVrLittleEndian); sop.SyntaxList.Add(TransferSyntax.ImplicitVrLittleEndian); _list.Add(sop); }