Files
Discord.Net/docs/guides/dependency_injection/samples/scoped.cs
2022-08-02 11:20:27 +02:00

7 lines
141 B
C#

// With serviceType:
collection.AddScoped<IScopedService, ScopedService>();
// Without serviceType:
collection.AddScoped<ScopedService>();