Files
oqtane.framework/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Startup/ClientStartup.cs
2025-08-27 12:20:59 -04:00

18 lines
485 B
C#

using Microsoft.Extensions.DependencyInjection;
using Oqtane.Services;
using [Owner].Module.[Module].Services;
namespace [Owner].Module.[Module].Startup
{
public class ClientStartup : IClientStartup
{
public void ConfigureServices(IServiceCollection services)
{
if (!services.Any(s => s.ServiceType == typeof(I[Module]Service)))
{
services.AddScoped<I[Module]Service, [Module]Service>();
}
}
}
}