From 6409870852f29e8e306c86c7df24182901e69320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Stenr=C3=B8jl?= Date: Fri, 20 Dec 2024 10:37:39 +0100 Subject: [PATCH] Sync namespace --- .../Fixtures/HealthChecksFixture.cs | 4 ++-- .../Jobs/DatabricksJobsClientTests.cs | 4 ++-- .../DatabricksWorkspaceExtensionsTests.cs | 8 ++++---- .../Databricks/Jobs/DatabricksJobsClient.cs | 4 ++-- .../Databricks/Jobs/IDatabricksJobsClient.cs | 19 +++++++++++++++++-- .../Databricks/Jobs/Model/JobRunId.cs | 2 +- .../Databricks/Jobs/Model/JobRunStatus.cs | 2 +- .../DatabricksJobsApiHealthCheck.cs | 2 +- .../DatabricksHealthCheckBuilderExtensions.cs | 6 +++--- .../DatabricksWorkspaceExtensions.cs | 12 ++++++------ .../Options/DatabricksWorkspaceOptions.cs | 2 +- .../Fixtures/OrchestrationsAppManager.cs | 2 +- .../DatabricksWorkspaceNames.cs | 2 +- ...Brs_021_ElectricalHeatingCalculation_V1.cs | 4 ++-- ...Brs_021_ElectricalHeatingCalculation_V1.cs | 4 ++-- ...Brs_021_ElectricalHeatingCalculation_V1.cs | 2 +- .../BRS_023_027/SearchCalculationHandler.cs | 2 +- .../BRS_023_027/SearchTrigger_Brs_023_027.cs | 1 - ...pGetJobRunStatusActivity_Brs_023_027_V1.cs | 4 ++-- ...tionStepStartJobActivity_Brs_023_027_V1.cs | 4 ++-- ...ionStepToRunningActivity_Brs_023_027_V1.cs | 2 +- ...StepToTerminatedActivity_Brs_023_027_V1.cs | 2 +- .../V1/Orchestration_Brs_023_027_V1.cs | 2 +- .../ProcessManager.Orchestrations/Program.cs | 3 ++- 24 files changed, 57 insertions(+), 42 deletions(-) diff --git a/source/ProcessManager.Components.Tests/Fixtures/HealthChecksFixture.cs b/source/ProcessManager.Components.Tests/Fixtures/HealthChecksFixture.cs index 7280bdb7..9f5b3c96 100644 --- a/source/ProcessManager.Components.Tests/Fixtures/HealthChecksFixture.cs +++ b/source/ProcessManager.Components.Tests/Fixtures/HealthChecksFixture.cs @@ -14,13 +14,13 @@ using Energinet.DataHub.Core.App.WebApp.Extensions.Builder; using Energinet.DataHub.Core.FunctionApp.TestCommon.Configuration; +using Energinet.DataHub.ProcessManager.Components.Extensions.DependencyInjection; +using Energinet.DataHub.ProcessManager.Components.Extensions.Options; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using ProcessManager.Components.Extensions.DependencyInjection; -using ProcessManager.Components.Extensions.Options; namespace Energinet.DataHub.ProcessManager.Components.Tests.Fixtures; diff --git a/source/ProcessManager.Components.Tests/Unit/Databricks/Jobs/DatabricksJobsClientTests.cs b/source/ProcessManager.Components.Tests/Unit/Databricks/Jobs/DatabricksJobsClientTests.cs index 8cf836d7..38b09338 100644 --- a/source/ProcessManager.Components.Tests/Unit/Databricks/Jobs/DatabricksJobsClientTests.cs +++ b/source/ProcessManager.Components.Tests/Unit/Databricks/Jobs/DatabricksJobsClientTests.cs @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using FluentAssertions; using Microsoft.Azure.Databricks.Client; using Microsoft.Azure.Databricks.Client.Models; using Moq; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Databricks.Jobs.Model; using Xunit; namespace Energinet.DataHub.ProcessManager.Components.Tests.Unit.Databricks.Jobs; diff --git a/source/ProcessManager.Components.Tests/Unit/Extensions/DependencyInjection/DatabricksWorkspaceExtensionsTests.cs b/source/ProcessManager.Components.Tests/Unit/Extensions/DependencyInjection/DatabricksWorkspaceExtensionsTests.cs index a19f1a68..6c3d4485 100644 --- a/source/ProcessManager.Components.Tests/Unit/Extensions/DependencyInjection/DatabricksWorkspaceExtensionsTests.cs +++ b/source/ProcessManager.Components.Tests/Unit/Extensions/DependencyInjection/DatabricksWorkspaceExtensionsTests.cs @@ -12,16 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Diagnostics.HealthChecks; +using Energinet.DataHub.ProcessManager.Components.Extensions.DependencyInjection; +using Energinet.DataHub.ProcessManager.Components.Extensions.Options; using FluentAssertions; using FluentAssertions.Execution; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Options; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Diagnostics.HealthChecks; -using ProcessManager.Components.Extensions.DependencyInjection; -using ProcessManager.Components.Extensions.Options; using Xunit; namespace Energinet.DataHub.ProcessManager.Components.Tests.Unit.Extensions.DependencyInjection; diff --git a/source/ProcessManager.Components/Databricks/Jobs/DatabricksJobsClient.cs b/source/ProcessManager.Components/Databricks/Jobs/DatabricksJobsClient.cs index fdbb8b58..20d12072 100644 --- a/source/ProcessManager.Components/Databricks/Jobs/DatabricksJobsClient.cs +++ b/source/ProcessManager.Components/Databricks/Jobs/DatabricksJobsClient.cs @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Microsoft.Azure.Databricks.Client; using Microsoft.Azure.Databricks.Client.Models; -using ProcessManager.Components.Databricks.Jobs.Model; -namespace ProcessManager.Components.Databricks.Jobs; +namespace Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; internal class DatabricksJobsClient( IJobsApi jobsApi) diff --git a/source/ProcessManager.Components/Databricks/Jobs/IDatabricksJobsClient.cs b/source/ProcessManager.Components/Databricks/Jobs/IDatabricksJobsClient.cs index 33278537..bf7647bf 100644 --- a/source/ProcessManager.Components/Databricks/Jobs/IDatabricksJobsClient.cs +++ b/source/ProcessManager.Components/Databricks/Jobs/IDatabricksJobsClient.cs @@ -12,9 +12,24 @@ // See the License for the specific language governing permissions and // limitations under the License. -using ProcessManager.Components.Databricks.Jobs.Model; -namespace ProcessManager.Components.Databricks.Jobs; +// Copyright 2020 Energinet DataHub A/S +// +// Licensed under the Apache License, Version 2.0 (the "License2"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; + +namespace Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; public interface IDatabricksJobsClient { diff --git a/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunId.cs b/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunId.cs index 0d9caf85..4b013861 100644 --- a/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunId.cs +++ b/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunId.cs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -namespace ProcessManager.Components.Databricks.Jobs.Model; +namespace Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; /// /// The run id of a Databricks job execution. diff --git a/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunStatus.cs b/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunStatus.cs index b57b7747..16c49dbf 100644 --- a/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunStatus.cs +++ b/source/ProcessManager.Components/Databricks/Jobs/Model/JobRunStatus.cs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -namespace ProcessManager.Components.Databricks.Jobs.Model; +namespace Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; /// /// The converted status of a Databricks job execution. diff --git a/source/ProcessManager.Components/Diagnostics/HealthChecks/DatabricksJobsApiHealthCheck.cs b/source/ProcessManager.Components/Diagnostics/HealthChecks/DatabricksJobsApiHealthCheck.cs index 62bef240..4f6a94d1 100644 --- a/source/ProcessManager.Components/Diagnostics/HealthChecks/DatabricksJobsApiHealthCheck.cs +++ b/source/ProcessManager.Components/Diagnostics/HealthChecks/DatabricksJobsApiHealthCheck.cs @@ -15,7 +15,7 @@ using Microsoft.Azure.Databricks.Client; using Microsoft.Extensions.Diagnostics.HealthChecks; -namespace ProcessManager.Components.Diagnostics.HealthChecks; +namespace Energinet.DataHub.ProcessManager.Components.Diagnostics.HealthChecks; /// /// This health check verifies that we can reach the Databricks Jobs API of a workspace. diff --git a/source/ProcessManager.Components/Extensions/Builder/DatabricksHealthCheckBuilderExtensions.cs b/source/ProcessManager.Components/Extensions/Builder/DatabricksHealthCheckBuilderExtensions.cs index a780e4bc..0cce2692 100644 --- a/source/ProcessManager.Components/Extensions/Builder/DatabricksHealthCheckBuilderExtensions.cs +++ b/source/ProcessManager.Components/Extensions/Builder/DatabricksHealthCheckBuilderExtensions.cs @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Extensions.DependencyInjection; using Microsoft.Azure.Databricks.Client; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using ProcessManager.Components.Diagnostics.HealthChecks; -using ProcessManager.Components.Extensions.DependencyInjection; -namespace ProcessManager.Components.Extensions.Builder; +namespace Energinet.DataHub.ProcessManager.Components.Extensions.Builder; /// /// Health check builder extensions to be used from . @@ -31,7 +31,7 @@ internal static class DatabricksHealthCheckBuilderExtensions /// /// /// If your application needs to access multiple Databricks workspaces, use the overloaded - /// method + /// method /// that allows you to specify the "service key". /// /// The health checks builder. diff --git a/source/ProcessManager.Components/Extensions/DependencyInjection/DatabricksWorkspaceExtensions.cs b/source/ProcessManager.Components/Extensions/DependencyInjection/DatabricksWorkspaceExtensions.cs index a39cdfd7..03e65832 100644 --- a/source/ProcessManager.Components/Extensions/DependencyInjection/DatabricksWorkspaceExtensions.cs +++ b/source/ProcessManager.Components/Extensions/DependencyInjection/DatabricksWorkspaceExtensions.cs @@ -12,14 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Extensions.Builder; +using Energinet.DataHub.ProcessManager.Components.Extensions.Options; using Microsoft.Azure.Databricks.Client; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Extensions.Builder; -using ProcessManager.Components.Extensions.Options; -namespace ProcessManager.Components.Extensions.DependencyInjection; +namespace Energinet.DataHub.ProcessManager.Components.Extensions.DependencyInjection; /// /// Extension methods for @@ -43,7 +43,7 @@ public static IServiceCollection AddDatabricksJobs(this IServiceCollection servi .BindConfiguration(DatabricksWorkspaceOptions.SectionName) .ValidateDataAnnotations(); - serviceCollection.AddSingleton(sp => + serviceCollection.AddSingleton(sp => { var options = sp.GetRequiredService>().Value; return DatabricksClient.CreateClient(options.BaseUrl, options.Token); @@ -82,7 +82,7 @@ public static IServiceCollection AddDatabricksJobs(this IServiceCollection servi .BindConfiguration(configSectionPath) .ValidateDataAnnotations(); - serviceCollection.AddKeyedSingleton(serviceKey: configSectionPath, (sp, key) => + serviceCollection.AddKeyedSingleton(serviceKey: configSectionPath, (sp, key) => { var snapshot = sp.GetRequiredService>(); var options = snapshot.Get(configSectionPath); diff --git a/source/ProcessManager.Components/Extensions/Options/DatabricksWorkspaceOptions.cs b/source/ProcessManager.Components/Extensions/Options/DatabricksWorkspaceOptions.cs index d4ed74c5..ee676051 100644 --- a/source/ProcessManager.Components/Extensions/Options/DatabricksWorkspaceOptions.cs +++ b/source/ProcessManager.Components/Extensions/Options/DatabricksWorkspaceOptions.cs @@ -14,7 +14,7 @@ using System.ComponentModel.DataAnnotations; -namespace ProcessManager.Components.Extensions.Options; +namespace Energinet.DataHub.ProcessManager.Components.Extensions.Options; public class DatabricksWorkspaceOptions { diff --git a/source/ProcessManager.Orchestrations.Tests/Fixtures/OrchestrationsAppManager.cs b/source/ProcessManager.Orchestrations.Tests/Fixtures/OrchestrationsAppManager.cs index 49ae2248..3362dda8 100644 --- a/source/ProcessManager.Orchestrations.Tests/Fixtures/OrchestrationsAppManager.cs +++ b/source/ProcessManager.Orchestrations.Tests/Fixtures/OrchestrationsAppManager.cs @@ -22,10 +22,10 @@ using Energinet.DataHub.Core.Messaging.Communication.Extensions.Options; using Energinet.DataHub.Core.TestCommon.Diagnostics; using Energinet.DataHub.ProcessManagement.Core.Infrastructure.Extensions.Options; +using Energinet.DataHub.ProcessManager.Components.Extensions.Options; using Energinet.DataHub.ProcessManager.Core.Tests.Fixtures; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.Options; -using ProcessManager.Components.Extensions.Options; using Xunit.Abstractions; namespace Energinet.DataHub.ProcessManager.Orchestrations.Tests.Fixtures; diff --git a/source/ProcessManager.Orchestrations/Extensions/DependencyInjection/DatabricksWorkspaceNames.cs b/source/ProcessManager.Orchestrations/Extensions/DependencyInjection/DatabricksWorkspaceNames.cs index df09f6bc..85714ad3 100644 --- a/source/ProcessManager.Orchestrations/Extensions/DependencyInjection/DatabricksWorkspaceNames.cs +++ b/source/ProcessManager.Orchestrations/Extensions/DependencyInjection/DatabricksWorkspaceNames.cs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -using ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; namespace Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_021_ElectricalHeatingCalculation_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_021_ElectricalHeatingCalculation_V1.cs index 5622a76c..8141c46b 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_021_ElectricalHeatingCalculation_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_021_ElectricalHeatingCalculation_V1.cs @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Microsoft.Azure.Functions.Worker; using Microsoft.Extensions.DependencyInjection; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1.Activities.CalculationStep; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_021_ElectricalHeatingCalculation_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_021_ElectricalHeatingCalculation_V1.cs index cc9861d3..3b912f8e 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_021_ElectricalHeatingCalculation_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_021_ElectricalHeatingCalculation_V1.cs @@ -13,11 +13,11 @@ // limitations under the License. using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Microsoft.Azure.Functions.Worker; using Microsoft.Extensions.DependencyInjection; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1.Activities.CalculationStep; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Orchestration_Brs_021_ElectricalHeatingCalculation_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Orchestration_Brs_021_ElectricalHeatingCalculation_V1.cs index b36488b6..cc2fe858 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Orchestration_Brs_021_ElectricalHeatingCalculation_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_021/ElectricalHeatingCalculation/V1/Orchestration_Brs_021_ElectricalHeatingCalculation_V1.cs @@ -13,12 +13,12 @@ // limitations under the License. using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1.Activities; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1.Activities.CalculationStep; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1.Model; using Microsoft.Azure.Functions.Worker; using Microsoft.DurableTask; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchCalculationHandler.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchCalculationHandler.cs index 094526d6..0874b5a5 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchCalculationHandler.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchCalculationHandler.cs @@ -19,7 +19,7 @@ using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_023_027.V1.Model; using NodaTime; -namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1; +namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027; internal class SearchCalculationHandler( IOrchestrationInstanceQueries queries) diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchTrigger_Brs_023_027.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchTrigger_Brs_023_027.cs index ff99445d..28de22f3 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchTrigger_Brs_023_027.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/SearchTrigger_Brs_023_027.cs @@ -13,7 +13,6 @@ // limitations under the License. using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_023_027; -using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.Functions.Worker; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_023_027_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_023_027_V1.cs index 2dd23b5c..ee5bf7e0 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_023_027_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepGetJobRunStatusActivity_Brs_023_027_V1.cs @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Microsoft.Azure.Functions.Worker; using Microsoft.Extensions.DependencyInjection; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities.CalculationStep; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_023_027_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_023_027_V1.cs index 27e1e4de..6854728a 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_023_027_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/CalculationStep/CalculationStepStartJobActivity_Brs_023_027_V1.cs @@ -13,13 +13,13 @@ // limitations under the License. using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_023_027.V1.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Mappers; using Microsoft.Azure.Functions.Worker; using Microsoft.Extensions.DependencyInjection; -using ProcessManager.Components.Databricks.Jobs; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities.CalculationStep; diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToRunningActivity_Brs_023_027_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToRunningActivity_Brs_023_027_V1.cs index 63d9b2d6..c29e5e96 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToRunningActivity_Brs_023_027_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToRunningActivity_Brs_023_027_V1.cs @@ -17,7 +17,7 @@ using Microsoft.Azure.Functions.Worker; using NodaTime; -namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities.CalculationStep; +namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities; internal class TransitionStepToRunningActivity_Brs_023_027_V1( IClock clock, diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToTerminatedActivity_Brs_023_027_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToTerminatedActivity_Brs_023_027_V1.cs index e6fd4407..98d6253e 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToTerminatedActivity_Brs_023_027_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Activities/TransitionStepToTerminatedActivity_Brs_023_027_V1.cs @@ -17,7 +17,7 @@ using Microsoft.Azure.Functions.Worker; using NodaTime; -namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities.CalculationStep; +namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities; internal class TransitionStepToTerminatedActivity_Brs_023_027_V1( IClock clock, diff --git a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Orchestration_Brs_023_027_V1.cs b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Orchestration_Brs_023_027_V1.cs index 8c2689a8..5c8ee43c 100644 --- a/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Orchestration_Brs_023_027_V1.cs +++ b/source/ProcessManager.Orchestrations/Processes/BRS_023_027/V1/Orchestration_Brs_023_027_V1.cs @@ -14,13 +14,13 @@ using Energinet.DataHub.ProcessManagement.Core.Domain.OrchestrationInstance; using Energinet.DataHub.ProcessManagement.Core.Infrastructure.Extensions.DurableTask; +using Energinet.DataHub.ProcessManager.Components.Databricks.Jobs.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_023_027.V1.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Activities.CalculationStep; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1.Model; using Microsoft.Azure.Functions.Worker; using Microsoft.DurableTask; -using ProcessManager.Components.Databricks.Jobs.Model; namespace Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1; diff --git a/source/ProcessManager.Orchestrations/Program.cs b/source/ProcessManager.Orchestrations/Program.cs index bc82ab7d..977bac8c 100644 --- a/source/ProcessManager.Orchestrations/Program.cs +++ b/source/ProcessManager.Orchestrations/Program.cs @@ -20,6 +20,7 @@ using Energinet.DataHub.ProcessManagement.Core.Infrastructure.Extensions.DependencyInjection; using Energinet.DataHub.ProcessManagement.Core.Infrastructure.Extensions.Startup; using Energinet.DataHub.ProcessManagement.Core.Infrastructure.Telemetry; +using Energinet.DataHub.ProcessManager.Components.Extensions.DependencyInjection; using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_021.ElectricalHeatingCalculation.V1.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_021.ForwardMeteredData.V1.Model; using Energinet.DataHub.ProcessManager.Orchestrations.Abstractions.Processes.BRS_023_027.V1.Model; @@ -27,12 +28,12 @@ using Energinet.DataHub.ProcessManager.Orchestrations.Extensions.DependencyInjection; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ElectricalHeatingCalculation.V1; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_021.ForwardMeteredData.V1; +using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_023_027.V1; using Energinet.DataHub.ProcessManager.Orchestrations.Processes.BRS_026.V1; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using ProcessManager.Components.Extensions.DependencyInjection; var host = new HostBuilder() .ConfigureFunctionsWebApplication()