Discord.Net/docs/guides/dependency_injection/samples/scoped.cs
2024-06-13 17:43:59 +12:00

6 lines
141 B
C#

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