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:
@@ -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]");
|
||||
|
||||
Reference in New Issue
Block a user