Rename client and server module services

Rename the client service class to Client[Module]Service and the server service file to Server[Module]Service, updating all references accordingly. Updated DI registration in ClientStartup to register Client[Module]Service, and updated Edit.razor and Index.razor to inject and call Client[Module]Service instead of [Module]Service. This clarifies client vs server implementations and avoids naming collisions.
This commit is contained in:
Leigh Pointer
2026-02-06 18:31:58 +01:00
parent 0dc9382215
commit 783d01bf9f
5 changed files with 12 additions and 12 deletions

View File

@@ -8,9 +8,9 @@ using Oqtane.Shared;
namespace [Owner].Module.[Module].Services
{
public class [Module]Service : ServiceBase, I[Module]Service
public class Client[Module]Service : ServiceBase, I[Module]Service
{
public [Module]Service(HttpClient http, SiteState siteState) : base(http, siteState) { }
public Client[Module]Service(HttpClient http, SiteState siteState) : base(http, siteState) { }
private string Apiurl => CreateApiUrl("[Module]");