Skip to content

Commit

Permalink
chore: fix sonar findings
Browse files Browse the repository at this point in the history
Refs: #240
  • Loading branch information
Phil91 committed Jan 20, 2025
1 parent 2189542 commit 2a899dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;

public interface IProcessCreation<TProcessType, TProcessStepType, TProcessTypeId, TProcessStepTypeId>
public interface IProcessCreation<TProcessType, TProcessStepType, in TProcessTypeId, in TProcessStepTypeId>
where TProcessType : class, IProcess<TProcessTypeId>, IProcessNavigation<TProcessStepType, TProcessStepTypeId>
where TProcessStepType : class, IProcessStep<TProcessStepTypeId>, IProcessStepNavigation<TProcessType, TProcessTypeId>
where TProcessTypeId : struct, IConvertible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Worker.Library

public static class ProcessExecutionServiceExtensions
{
public static IServiceCollection AddProcessExecutionService<TProcessType, TProcessStepType, TProcessTypeId, TProcessStepTypeId>(this IServiceCollection services, IConfigurationSection section)
public static IServiceCollection AddProcessExecutionService<TProcessTypeId, TProcessStepTypeId>(this IServiceCollection services, IConfigurationSection section)
where TProcessTypeId : struct, IConvertible
where TProcessStepTypeId : struct, IConvertible
{
Expand Down
3 changes: 2 additions & 1 deletion src/processes/Processes.Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
using Org.Eclipse.TractusX.Portal.Backend.Framework.Logging;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.Concrete.Entities;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Library.DBAccess;
using Org.Eclipse.TractusX.Portal.Backend.Framework.Processes.Worker.Library;
using Org.Eclipse.TractusX.Portal.Backend.Keycloak.ErrorHandling;
using Org.Eclipse.TractusX.Portal.Backend.Keycloak.Factory;
Expand Down Expand Up @@ -59,7 +60,7 @@
services
.AddMailingAndTemplateManager(hostContext.Configuration)
.AddScoped<IRepositories, ProcessRepositories<ProcessTypeId, ProcessStepTypeId, PortalDbContext>>()
.AddProcessExecutionService<Process<ProcessTypeId, ProcessStepTypeId>, ProcessStep<ProcessTypeId, ProcessStepTypeId>, ProcessTypeId, ProcessStepTypeId>(hostContext.Configuration.GetSection("Processes"))
.AddProcessExecutionService<ProcessTypeId, ProcessStepTypeId>(hostContext.Configuration.GetSection("Processes"))
.AddTransient<IProcessTypeExecutor<ProcessTypeId, ProcessStepTypeId>, ApplicationChecklistProcessTypeExecutor>()
.AddOfferSubscriptionProcessExecutor(hostContext.Configuration)
.AddTechnicalUserProfile()
Expand Down

0 comments on commit 2a899dd

Please sign in to comment.