コード例 #1
0
 public ExtendedQueryTagStoreEntry(int key, string path, string vr, string privateCreator, QueryTagLevel level, ExtendedQueryTagStatus status)
 {
     Key            = key;
     Path           = path;
     VR             = vr;
     PrivateCreator = privateCreator;
     Level          = level;
     Status         = status;
 }
コード例 #2
0
 public ExtendedQueryTagStoreJoinEntry(
     int key,
     string path,
     string vr,
     string privateCreator,
     QueryTagLevel level,
     ExtendedQueryTagStatus status,
     QueryStatus queryStatus,
     int errorCount,
     Guid?operationId = null)
     : base(key, path, vr, privateCreator, level, status, queryStatus, errorCount)
 {
     OperationId = operationId;
 }
コード例 #3
0
 private void AssertTag(
     int key,
     AddExtendedQueryTagEntry expected,
     ExtendedQueryTagStoreJoinEntry actual,
     ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready,
     QueryStatus queryStatus       = QueryStatus.Enabled,
     Guid?operationId = null)
 {
     Assert.Equal(key, actual.Key);
     Assert.Equal(expected.Path, actual.Path);
     Assert.Equal(expected.PrivateCreator, actual.PrivateCreator);
     Assert.Equal(expected.VR, actual.VR);
     Assert.Equal(expected.Level, actual.Level);
     Assert.Equal(status, actual.Status); // Typically we'll set the status to Adding
     Assert.Equal(queryStatus, actual.QueryStatus);
     Assert.Equal(operationId, actual.OperationId);
 }
コード例 #4
0
 public static ExtendedQueryTagStoreEntry BuildExtendedQueryTagStoreEntry(this DicomTag tag, int key = 1, string vr = null, string privateCreator = null, QueryTagLevel level = QueryTagLevel.Series, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new ExtendedQueryTagStoreEntry(key: key, path: tag.GetPath(), vr: vr ?? tag.GetDefaultVR().Code, privateCreator: privateCreator, level: level, status: status));
 }
コード例 #5
0
 public static GetExtendedQueryTagEntry BuildGetExtendedQueryTagEntry(this DicomTag tag, string vr = null, string privateCreator = null, QueryTagLevel level = QueryTagLevel.Series, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new GetExtendedQueryTagEntry {
         Path = tag.GetPath(), VR = vr ?? tag.GetDefaultVR()?.Code, PrivateCreator = privateCreator, Level = level, Status = status
     });
 }
コード例 #6
0
 private static GetExtendedQueryTagEntry CreateExtendedQueryTagEntry(string path, string vr, string privateCreator, QueryTagLevel level = QueryTagLevel.Instance, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new GetExtendedQueryTagEntry {
         Path = path, VR = vr, PrivateCreator = privateCreator, Level = level, Status = status
     });
 }
コード例 #7
0
        private async Task AssertAddedAsync(int key, AddExtendedQueryTagEntry expected, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
        {
            ExtendedQueryTagStoreJoinEntry actual = await _extendedQueryTagStore.GetExtendedQueryTagAsync(expected.Path);

            AssertTag(key, expected, actual, status);
        }
コード例 #8
0
 public ExtendedQueryTagStoreEntry(int key, string path, string vr, string privateCreator, QueryTagLevel level, ExtendedQueryTagStatus status, QueryStatus queryStatus, int errorCount)
 {
     Key            = key;
     Path           = EnsureArg.IsNotNullOrWhiteSpace(path);
     VR             = EnsureArg.IsNotNullOrWhiteSpace(vr);
     PrivateCreator = privateCreator;
     Level          = EnsureArg.EnumIsDefined(level);
     Status         = EnsureArg.EnumIsDefined(status);
     QueryStatus    = EnsureArg.EnumIsDefined(queryStatus);
     ErrorCount     = EnsureArg.IsGte(errorCount, 0, nameof(errorCount));
 }