18 lines
485 B
C#
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>();
|
|
}
|
|
}
|
|
}
|
|
}
|