mirror of
https://github.com/AlexMacocian/Slim.git
synced 2026-07-22 18:49:47 +00:00
e8adfa1acc
* Setup integration with Microsoft.Extensions.DependencyInjection * Setup Slim integration project with Microsoft.Extensions.DependencyInjection
18 lines
384 B
C#
18 lines
384 B
C#
using System;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Slim.Integration.ServiceCollection;
|
|
|
|
public sealed class ServiceScope : IServiceScope
|
|
{
|
|
public System.IServiceProvider ServiceProvider { get; set; }
|
|
|
|
public void Dispose()
|
|
{
|
|
if (this.ServiceProvider is IDisposable disposable)
|
|
{
|
|
disposable.Dispose();
|
|
}
|
|
}
|
|
}
|