mirror of
https://github.com/AlexMacocian/Slim.git
synced 2026-07-15 15:19:59 +00:00
18 lines
390 B
C#
18 lines
390 B
C#
using System;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Slim.Integration.ServiceCollection;
|
|
|
|
internal sealed class SlimServiceScope : IServiceScope
|
|
{
|
|
public System.IServiceProvider ServiceProvider { get; set; }
|
|
|
|
public void Dispose()
|
|
{
|
|
if (this.ServiceProvider is IDisposable disposable)
|
|
{
|
|
disposable.Dispose();
|
|
}
|
|
}
|
|
}
|