Move I[Module]Service to Shared

Relocate the I[Module]Service interface from the client Services file to a new Shared/Interfaces/I[Module]Service.cs so the interface becomes a shared contract. Remove the duplicate interface from the client-side [Module]Service implementation.
It was move in error, release 6.1.5 PR add a new Visual Studio Project Template #5493
This commit is contained in:
Leigh Pointer
2026-01-30 14:03:21 +01:00
parent 6d4870f41a
commit d638f9492d
3 changed files with 23 additions and 12 deletions

View File

@@ -20,6 +20,7 @@
<Content Remove="wwwroot\_content\*\**" /> <Content Remove="wwwroot\_content\*\**" />
<EmbeddedResource Remove="wwwroot\Modules\Templates\**" /> <EmbeddedResource Remove="wwwroot\Modules\Templates\**" />
<EmbeddedResource Remove="wwwroot\Themes\Templates\**" /> <EmbeddedResource Remove="wwwroot\Themes\Templates\**" />
<None Remove="wwwroot\Modules\Templates\**" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Scripts\MigrateMaster.sql" /> <EmbeddedResource Include="Scripts\MigrateMaster.sql" />
@@ -78,4 +79,8 @@
<!-- extends watching group to include *.dll files and exclude the ones cause an infinite loop --> <!-- extends watching group to include *.dll files and exclude the ones cause an infinite loop -->
<Watch Include="**\*.dll" Exclude="**\Microsoft.EntityFrameworkCore.*.dll;**\Oqtane.Database.*.dll;" /> <Watch Include="**\*.dll" Exclude="**\Microsoft.EntityFrameworkCore.*.dll;**\Oqtane.Database.*.dll;" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Watch Remove="wwwroot\Modules\Templates\**" />
</ItemGroup>
</Project> </Project>

View File

@@ -7,18 +7,6 @@ using Oqtane.Shared;
namespace [Owner].Module.[Module].Services namespace [Owner].Module.[Module].Services
{ {
public interface I[Module]Service
{
Task<List<Models.[Module]>> Get[Module]sAsync(int ModuleId);
Task<Models.[Module]> Get[Module]Async(int [Module]Id, int ModuleId);
Task<Models.[Module]> Add[Module]Async(Models.[Module] [Module]);
Task<Models.[Module]> Update[Module]Async(Models.[Module] [Module]);
Task Delete[Module]Async(int [Module]Id, int ModuleId);
}
public class [Module]Service : ServiceBase, I[Module]Service public class [Module]Service : ServiceBase, I[Module]Service
{ {

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace [Owner].Module.[Module].Services
{
public interface I[Module]Service
{
Task<List<Models.[Module]>> Get[Module]sAsync(int ModuleId);
Task<Models.[Module]> Get[Module]Async(int [Module]Id, int ModuleId);
Task<Models.[Module]> Add[Module]Async(Models.[Module] [Module]);
Task<Models.[Module]> Update[Module]Async(Models.[Module] [Module]);
Task Delete[Module]Async(int [Module]Id, int ModuleId);
}
}