Skip to content

Commit

Permalink
Merge pull request #487 from Project-MONAI/AI-230
Browse files Browse the repository at this point in the history
adding artifactReceieved
  • Loading branch information
neildsouth authored Nov 20, 2023
2 parents e6a1400 + 2bdc712 commit 076cc86
Show file tree
Hide file tree
Showing 68 changed files with 1,034 additions and 306 deletions.
10 changes: 6 additions & 4 deletions doc/dependency_decisions.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -774,15 +774,17 @@
- :who: neilsouth
:why: Apache-2.0 (https://github.com/Project-MONAI/monai-deploy-messaging/raw/main/LICENSE)
:versions:
- 1.0.1
:when: 2022-08-16 23:06:21.051573547 Z
- 1.0.3
- 1.0.4
:when: 2023-10-13 18:06:21.511789690 Z
- - :approve
- Monai.Deploy.Messaging.RabbitMQ
- :who: neilsouth
:why: Apache-2.0 (https://github.com/Project-MONAI/monai-deploy-messaging/raw/main/LICENSE)
:versions:
- 1.0.1
:when: 2022-08-16 23:06:21.511789690 Z
- 1.0.3
- 1.0.4
:when: 2023-10-13 18:06:21.511789690 Z
- - :approve
- Monai.Deploy.Storage
- :who: mocsharp
Expand Down
16 changes: 15 additions & 1 deletion docker-compose/configs/orthanc.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,21 @@
"STORESCP",
"127.0.0.1",
104
],
"mig-local-1104": [
"STORESCP",
"host.docker.internal",
1104
],

"mig-local-1104StartMWMExtApp": [
"StartMWMExtApp",
"host.docker.internal",
1104
]



/**
* By default, the Orthanc SCP accepts all DICOM commands (C-ECHO,
* C-STORE, C-FIND, C-MOVE) issued by the registered remote SCU
Expand Down Expand Up @@ -512,4 +526,4 @@
"StowMaxSize": 10, // For STOW-RS client, the maximum size of the body in one single HTTP query (in MB, 0 = no limit)
"QidoCaseSensitive": true // For QIDO-RS server, whether search is case sensitive (since release 0.5)
}
}
}
Empty file modified docker-compose/docker-compose.yml
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions src/Api/ExportRequestDataMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public string CorrelationId
get { return _exportRequest.CorrelationId; }
}

public string? FilePayloadId
{
get { return _exportRequest.PayloadId; }
}

public string[] Destinations
{
get { return _exportRequest.Destinations; }
Expand Down
5 changes: 3 additions & 2 deletions src/Api/Monai.Deploy.InformaticsGateway.Api.csproj
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</PropertyGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths-&gt;WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
</ItemGroup>
</Target>

Expand All @@ -55,7 +55,8 @@
<PackageReference Include="fo-dicom" Version="5.1.1" />
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="6.0.22" />
<PackageReference Include="Monai.Deploy.Messaging" Version="1.0.1" />
<PackageReference Include="Monai.Deploy.Messaging" Version="1.0.4" />
<PackageReference Include="Monai.Deploy.Messaging.RabbitMQ" Version="1.0.4" />
<PackageReference Include="Monai.Deploy.Storage" Version="0.2.18" />
</ItemGroup>

Expand Down
Empty file modified src/Api/MonaiApplicationEntity.cs
100644 → 100755
Empty file.
18 changes: 16 additions & 2 deletions src/Api/Storage/Payload.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public TimeSpan Elapsed
public Payload(string key, string correlationId, string? workflowInstanceId, string? taskId, DataOrigin dataTrigger, uint timeout)
{
Guard.Against.NullOrWhiteSpace(key, nameof(key));

Files = new List<FileStorageMetadata>();
DataOrigins = new HashSet<DataOrigin>();
_lastReceived = new Stopwatch();
Expand All @@ -107,6 +106,21 @@ public Payload(string key, string correlationId, string? workflowInstanceId, str
DataTrigger = dataTrigger;
}

public Payload(string key, string correlationId, string? workflowInstanceId, string? taskId, DataOrigin dataTrigger, uint timeout, string? payloadId = null) :

Check warning on line 109 in src/Api/Storage/Payload.cs

View workflow job for this annotation

GitHub Actions / unit-test

This method signature overlaps the one defined on line 89, the default parameter value can't be used.

Check warning on line 109 in src/Api/Storage/Payload.cs

View workflow job for this annotation

GitHub Actions / unit-test

This method signature overlaps the one defined on line 89, the default parameter value can't be used.

Check warning on line 109 in src/Api/Storage/Payload.cs

View workflow job for this annotation

GitHub Actions / unit-test

This method signature overlaps the one defined on line 89, the default parameter value can't be used.

Check warning on line 109 in src/Api/Storage/Payload.cs

View workflow job for this annotation

GitHub Actions / unit-test

This method signature overlaps the one defined on line 89, the default parameter value can't be used.

Check warning on line 109 in src/Api/Storage/Payload.cs

View workflow job for this annotation

GitHub Actions / unit-test

This method signature overlaps the one defined on line 89, the default parameter value can't be used.
this(key, correlationId, workflowInstanceId, taskId, dataTrigger, timeout)
{
Guard.Against.NullOrWhiteSpace(key, nameof(key));

if (payloadId is null)
{
PayloadId = Guid.NewGuid();
}
else
{
PayloadId = Guid.Parse(payloadId);
}
}

public void Add(FileStorageMetadata value)
{
Guard.Against.Null(value, nameof(value));
Expand Down Expand Up @@ -158,4 +172,4 @@ public void Dispose()
GC.SuppressFinalize(this);
}
}
}
}
40 changes: 35 additions & 5 deletions src/Api/Test/packages.lock.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,25 @@
},
"Monai.Deploy.Messaging": {
"type": "Transitive",
"resolved": "1.0.1",
"contentHash": "w0+37sCMzhZg4vhYFG+9TKmDW+Dks5DOiTrJzdnT8xJCfH1MK6xkRnIf+dBfxes0wFwPiKueaUWDcUsg1RnadQ==",
"resolved": "1.0.4",
"contentHash": "K6RrbDh7upokvt+sKuKEhQ+B1Xj46DF4sHxqwE6ymZazwmRULzsD0u/1IeDDJCGuRs3iG64QWwCt32j30PSZLg==",
"dependencies": {
"Ardalis.GuardClauses": "4.1.1",
"Microsoft.Extensions.Diagnostics.HealthChecks": "6.0.21",
"Newtonsoft.Json": "13.0.3",
"System.IO.Abstractions": "17.2.3"
}
},
"Monai.Deploy.Messaging.RabbitMQ": {
"type": "Transitive",
"resolved": "1.0.4",
"contentHash": "2llZ4XbE91Km2Q+JEKSSeTyhZLWRq3lN5xQ6+Klqow3V8SXBAlOQQ+b5//BEm6x0QdoycFberMOVAsZYYM0j7g==",
"dependencies": {
"Monai.Deploy.Messaging": "1.0.4",
"Polly": "7.2.4",
"RabbitMQ.Client": "6.5.0"
}
},
"Monai.Deploy.Storage": {
"type": "Transitive",
"resolved": "0.2.18",
Expand Down Expand Up @@ -339,6 +349,20 @@
"resolved": "6.5.0",
"contentHash": "QWINE2x3MbTODsWT1Gh71GaGb5icBz4chS8VYvTgsBnsi8esgN6wtHhydd7fvToWECYGq7T4cgBBDiKD/363fg=="
},
"Polly": {
"type": "Transitive",
"resolved": "7.2.4",
"contentHash": "bw00Ck5sh6ekduDE3mnCo1ohzuad946uslCDEENu3091+6UKnBuKLo4e+yaNcCzXxOZCXWY2gV4a35+K1d4LDA=="
},
"RabbitMQ.Client": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "9hY5HiWPtCla1/l0WmXmLnqoX7iKE3neBQUWnetIJrRpOvTbO//XQfQDh++xgHCshL40Kv/6bR0HDkmJz46twg==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Threading.Channels": "7.0.0"
}
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -684,6 +708,11 @@
"System.Threading": "4.3.0"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"System.Net.Http": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -1126,8 +1155,8 @@
},
"System.Threading.Channels": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q=="
"resolved": "7.0.0",
"contentHash": "qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA=="
},
"System.Threading.Tasks": {
"type": "Transitive",
Expand Down Expand Up @@ -1251,7 +1280,8 @@
"Macross.Json.Extensions": "[3.0.0, )",
"Microsoft.EntityFrameworkCore.Abstractions": "[6.0.22, )",
"Monai.Deploy.InformaticsGateway.Common": "[1.0.0, )",
"Monai.Deploy.Messaging": "[1.0.1, )",
"Monai.Deploy.Messaging": "[1.0.4, )",
"Monai.Deploy.Messaging.RabbitMQ": "[1.0.4, )",
"Monai.Deploy.Storage": "[0.2.18, )",
"fo-dicom": "[5.1.1, )"
}
Expand Down
40 changes: 35 additions & 5 deletions src/Api/packages.lock.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,27 @@
},
"Monai.Deploy.Messaging": {
"type": "Direct",
"requested": "[1.0.1, )",
"resolved": "1.0.1",
"contentHash": "w0+37sCMzhZg4vhYFG+9TKmDW+Dks5DOiTrJzdnT8xJCfH1MK6xkRnIf+dBfxes0wFwPiKueaUWDcUsg1RnadQ==",
"requested": "[1.0.4, )",
"resolved": "1.0.4",
"contentHash": "K6RrbDh7upokvt+sKuKEhQ+B1Xj46DF4sHxqwE6ymZazwmRULzsD0u/1IeDDJCGuRs3iG64QWwCt32j30PSZLg==",
"dependencies": {
"Ardalis.GuardClauses": "4.1.1",
"Microsoft.Extensions.Diagnostics.HealthChecks": "6.0.21",
"Newtonsoft.Json": "13.0.3",
"System.IO.Abstractions": "17.2.3"
}
},
"Monai.Deploy.Messaging.RabbitMQ": {
"type": "Direct",
"requested": "[1.0.4, )",
"resolved": "1.0.4",
"contentHash": "2llZ4XbE91Km2Q+JEKSSeTyhZLWRq3lN5xQ6+Klqow3V8SXBAlOQQ+b5//BEm6x0QdoycFberMOVAsZYYM0j7g==",
"dependencies": {
"Monai.Deploy.Messaging": "1.0.4",
"Polly": "7.2.4",
"RabbitMQ.Client": "6.5.0"
}
},
"Monai.Deploy.Storage": {
"type": "Direct",
"requested": "[0.2.18, )",
Expand Down Expand Up @@ -194,6 +205,20 @@
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
},
"Polly": {
"type": "Transitive",
"resolved": "7.2.4",
"contentHash": "bw00Ck5sh6ekduDE3mnCo1ohzuad946uslCDEENu3091+6UKnBuKLo4e+yaNcCzXxOZCXWY2gV4a35+K1d4LDA=="
},
"RabbitMQ.Client": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "9hY5HiWPtCla1/l0WmXmLnqoX7iKE3neBQUWnetIJrRpOvTbO//XQfQDh++xgHCshL40Kv/6bR0HDkmJz46twg==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Threading.Channels": "7.0.0"
}
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.5.1",
Expand All @@ -212,6 +237,11 @@
"resolved": "17.2.3",
"contentHash": "VcozGeE4SxIo0cnXrDHhbrh/Gb8KQnZ3BvMelvh+iw0PrIKtuuA46U2Xm4e4pgnaWFgT4RdZfTpWl/WPRdw0WQ=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
Expand Down Expand Up @@ -244,8 +274,8 @@
},
"System.Threading.Channels": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q=="
"resolved": "7.0.0",
"contentHash": "qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA=="
},
"monai.deploy.informaticsgateway.common": {
"type": "Project",
Expand Down
44 changes: 37 additions & 7 deletions src/CLI/Test/packages.lock.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,25 @@
},
"Monai.Deploy.Messaging": {
"type": "Transitive",
"resolved": "1.0.1",
"contentHash": "w0+37sCMzhZg4vhYFG+9TKmDW+Dks5DOiTrJzdnT8xJCfH1MK6xkRnIf+dBfxes0wFwPiKueaUWDcUsg1RnadQ==",
"resolved": "1.0.4",
"contentHash": "K6RrbDh7upokvt+sKuKEhQ+B1Xj46DF4sHxqwE6ymZazwmRULzsD0u/1IeDDJCGuRs3iG64QWwCt32j30PSZLg==",
"dependencies": {
"Ardalis.GuardClauses": "4.1.1",
"Microsoft.Extensions.Diagnostics.HealthChecks": "6.0.21",
"Newtonsoft.Json": "13.0.3",
"System.IO.Abstractions": "17.2.3"
}
},
"Monai.Deploy.Messaging.RabbitMQ": {
"type": "Transitive",
"resolved": "1.0.4",
"contentHash": "2llZ4XbE91Km2Q+JEKSSeTyhZLWRq3lN5xQ6+Klqow3V8SXBAlOQQ+b5//BEm6x0QdoycFberMOVAsZYYM0j7g==",
"dependencies": {
"Monai.Deploy.Messaging": "1.0.4",
"Polly": "7.2.4",
"RabbitMQ.Client": "6.5.0"
}
},
"Monai.Deploy.Storage": {
"type": "Transitive",
"resolved": "0.2.18",
Expand Down Expand Up @@ -587,6 +597,20 @@
"resolved": "6.5.0",
"contentHash": "QWINE2x3MbTODsWT1Gh71GaGb5icBz4chS8VYvTgsBnsi8esgN6wtHhydd7fvToWECYGq7T4cgBBDiKD/363fg=="
},
"Polly": {
"type": "Transitive",
"resolved": "7.2.4",
"contentHash": "bw00Ck5sh6ekduDE3mnCo1ohzuad946uslCDEENu3091+6UKnBuKLo4e+yaNcCzXxOZCXWY2gV4a35+K1d4LDA=="
},
"RabbitMQ.Client": {
"type": "Transitive",
"resolved": "6.5.0",
"contentHash": "9hY5HiWPtCla1/l0WmXmLnqoX7iKE3neBQUWnetIJrRpOvTbO//XQfQDh++xgHCshL40Kv/6bR0HDkmJz46twg==",
"dependencies": {
"System.Memory": "4.5.5",
"System.Threading.Channels": "7.0.0"
}
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -959,6 +983,11 @@
"System.Threading": "4.3.0"
}
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"System.Net.Http": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -1401,8 +1430,8 @@
},
"System.Threading.Channels": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q=="
"resolved": "7.0.0",
"contentHash": "qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA=="
},
"System.Threading.Tasks": {
"type": "Transitive",
Expand Down Expand Up @@ -1521,7 +1550,7 @@
"Crayon": "[2.0.69, )",
"Docker.DotNet": "[3.125.15, )",
"Microsoft.Extensions.Http": "[6.0.0, )",
"Monai.Deploy.InformaticsGateway.Api": "[1.0.0, )",
"Monai.Deploy.InformaticsGateway.Api": "[0.4.1, )",
"Monai.Deploy.InformaticsGateway.Client": "[1.0.0, )",
"Monai.Deploy.InformaticsGateway.Common": "[1.0.0, )",
"System.CommandLine.Hosting": "[0.4.0-alpha.22272.1, )",
Expand All @@ -1534,15 +1563,16 @@
"Macross.Json.Extensions": "[3.0.0, )",
"Microsoft.EntityFrameworkCore.Abstractions": "[6.0.22, )",
"Monai.Deploy.InformaticsGateway.Common": "[1.0.0, )",
"Monai.Deploy.Messaging": "[1.0.1, )",
"Monai.Deploy.Messaging": "[1.0.4, )",
"Monai.Deploy.Messaging.RabbitMQ": "[1.0.4, )",
"Monai.Deploy.Storage": "[0.2.18, )",
"fo-dicom": "[5.1.1, )"
}
},
"monai.deploy.informaticsgateway.client": {
"type": "Project",
"dependencies": {
"Monai.Deploy.InformaticsGateway.Api": "[1.0.0, )",
"Monai.Deploy.InformaticsGateway.Api": "[0.4.1, )",
"Monai.Deploy.InformaticsGateway.Client.Common": "[1.0.0, )"
}
},
Expand Down
Loading

0 comments on commit 076cc86

Please sign in to comment.