Skip to content

Commit

Permalink
fixing builds
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth committed Sep 7, 2023
1 parent 938e7a6 commit 90b567e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InformaticsGateway/Repositories/MonaiServiceLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public Dictionary<string, ServiceStatus> GetServiceStatus()
return _runningServices.ToDictionary(k => k.ServiceName, v => v.Status);
}

private IMonaiService GetService(Type type)
private IMonaiService? GetService(Type type)
{
Guard.Against.Null(type, nameof(type));

return
(_serviceProvider.GetService(type) as IMonaiService)!;
(_serviceProvider.GetService(type) as IMonaiService);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
* limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Abstractions;
using System.IO.Abstractions.TestingHelpers;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using FellowOakDicom;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.ModelBinding;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
using Monai.Deploy.InformaticsGateway.Services.Storage;
using Moq;
using Xunit;
using System.Threading.Tasks;
using System;
using System.Threading;

namespace Monai.Deploy.InformaticsGateway.Test.Services.Http.DicomWeb
{
Expand Down

0 comments on commit 90b567e

Please sign in to comment.