Files
oqtane.framework/Oqtane.Server/wwwroot/Modules/Templates/External/Client/Startup/ClientStartup.cs
2025-09-02 17:09:55 -04:00

19 lines
504 B
C#

using Microsoft.Extensions.DependencyInjection;
using System.Linq;
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>();
}
}
}
}