Skip to content

Commit

Permalink
Merge pull request #865 from Project-MONAI/refactoring
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
neildsouth authored Aug 23, 2023
2 parents 99bcbeb + 04dcc28 commit 6fd4ef2
Show file tree
Hide file tree
Showing 304 changed files with 2,266 additions and 1,318 deletions.
3 changes: 2 additions & 1 deletion doc/dependency_decisions.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:versions:
- 4.0.1
- 4.1.1
:when: 2022-10-14 23:36:39.999308652 Z
:when: 2023-08-15 16:36:39.999308652 Z
- - :approve
- AutoFixture
- :who: mocsharp
Expand Down Expand Up @@ -606,6 +606,7 @@
- 2.0.0
- 6.0.4
- 7.0.0
- 6.0.4
:when: 2022-10-14 23:37:09.821156462 Z
- - :approve
- Microsoft.Extensions.Logging.Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class ArgoCallbackConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class BackgroundServiceSettings
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
/// <summary>
/// Validates configuration based on application requirements and DICOM VR requirements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class DicomAgentConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using System;
using System.Runtime.Serialization;

namespace Monai.Deploy.WorkflowManager.Configuration.Exceptions
namespace Monai.Deploy.WorkflowManager.Common.Configuration.Exceptions
{
/// <summary>
/// Represnets an exception based upon invalid configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class InformaticsGatewayConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Microsoft.Extensions.Configuration;
using Monai.Deploy.Messaging.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class MessageBrokerConfiguration : MessageBrokerServiceConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class MessageBrokerConfigurationKeys
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class PagedOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class EndpointSettings
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class RetryConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using Microsoft.Extensions.Configuration;
using Monai.Deploy.Storage.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class StorageConfiguration : StorageServiceConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class TaskManagerConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;

namespace Monai.Deploy.WorkflowManager.Configuration
namespace Monai.Deploy.WorkflowManager.Common.Configuration
{
public class WorkflowManagerOptions : PagedOptions
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
using Ardalis.GuardClauses;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Monai.Deploy.WorkflowManager.Configuration;
using Monai.Deploy.WorkflowManager.Shared.Filter;
using Monai.Deploy.WorkflowManager.Shared.Wrappers;
using Monai.Deploy.WorkflowManager.Shared.Services;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Wrappers;
using Monai.Deploy.WorkflowManager.Common.Configuration;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Services;

namespace Monai.Deploy.WorkflowManager.ControllersShared
namespace Monai.Deploy.WorkflowManager.Common.ControllersShared
{
/// <summary>
/// Base Api Controller.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared.Filter
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter
{
/// <summary>
/// Pagination Filter class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared.Filter
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter
{
public class TimeFilter : PaginationFilter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public static class HttpLoggingExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public interface IMonaiService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public interface IMonaiServiceLocator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>Monai.Deploy.WorkflowManager.Shared</RootNamespace>
<RootNamespace>Monai.Deploy.WorkflowManager.Common</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down Expand Up @@ -53,7 +53,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Configuration\Monai.Deploy.WorkflowManager.Configuration.csproj" />
<ProjectReference Include="..\Configuration\Monai.Deploy.WorkflowManager.Common.Configuration.csproj" />
</ItemGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Microsoft.Extensions.Diagnostics.HealthChecks;

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public class MonaiHealthCheck : IHealthCheck
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

using Ardalis.GuardClauses;

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public class MonaiServiceLocator : IMonaiServiceLocator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public static class PatientKeys
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
[AttributeUsage(AttributeTargets.Assembly)]
public class PlugInAttribute : Attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
/// <summary>
/// Defines the state of a running service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

using Monai.Deploy.WorkflowManager.Shared.Filter;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter;

namespace Monai.Deploy.WorkflowManager.Shared.Services
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Services
{
/// <summary>
/// Uri Serivce.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/

using Microsoft.AspNetCore.WebUtilities;
using Monai.Deploy.WorkflowManager.Shared.Filter;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter;

namespace Monai.Deploy.WorkflowManager.Shared.Services
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Services
{
/// <summary>
/// Uri Service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using System.Text.RegularExpressions;
using FellowOakDicom;

namespace Monai.Deploy.WorkflowManager.Shared.Utilities
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Utilities
{
public static class DicomTagUtilities
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous
{
public static class ValidationConstants
{
Expand Down Expand Up @@ -172,7 +172,8 @@ public enum NotificationValues
RouterTaskType,
ExportTaskType,
DockerTaskType,
Email
Email,
ExternalAppTaskType
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

using Monai.Deploy.WorkflowManager.Shared.Filter;
using Monai.Deploy.WorkflowManager.Shared.Services;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Services;
using Monai.Deploy.WorkflowManager.Common.Miscellaneous.Filter;

namespace Monai.Deploy.WorkflowManager.Shared.Wrappers
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Wrappers
{
/// <summary>
/// Paged Response for use with paginations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

namespace Monai.Deploy.WorkflowManager.Shared.Wrappers
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Wrappers
{
/// <summary>
/// Response object.
Expand Down Expand Up @@ -44,7 +44,7 @@ public Response(T data)
/// <summary>
/// Gets or sets Data.
/// </summary>
public T Data { get; set; }
public T? Data { get; set; }

/// <summary>
/// Gets or sets a value indicating whether response has succeeded.
Expand All @@ -54,7 +54,7 @@ public Response(T data)
/// <summary>
/// Gets or sets errors.
/// </summary>
public string?[] Errors { get; set; }
public string[]? Errors { get; set; } = Array.Empty<string>();

/// <summary>
/// Gets or sets message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace Monai.Deploy.WorkflowManager.Shared.Wrappers
namespace Monai.Deploy.WorkflowManager.Common.Miscellaneous.Wrappers
{
public class StatsPagedResponse<T> : PagedResponse<T>
{
Expand All @@ -30,9 +30,5 @@ public StatsPagedResponse(T data, int pageNumber, int pageSize) : base(data, pag
{

}
//public StatsPagedResponse(PagedResponse<T> paged) : base(paged.Data, paged.PageNumber, paged.PageSize)
//{
// int re = 0;
//}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"resolved": "6.0.0",
"contentHash": "TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q=="
},
"monai.deploy.workflowmanager.configuration": {
"Monai.Deploy.WorkflowManager.Common.configuration": {
"type": "Project",
"dependencies": {
"Monai.Deploy.Messaging": "[0.1.25, )",
Expand Down
Loading

0 comments on commit 6fd4ef2

Please sign in to comment.