2022-12-07 14:05:11 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
2026-04-07 14:23:29 +02:00
|
|
|
namespace Finch.Communication;
|
2022-12-07 14:05:11 +01:00
|
|
|
|
|
|
|
|
public class LazilyResolved<T> : Lazy<T>
|
|
|
|
|
{
|
|
|
|
|
public LazilyResolved(IServiceProvider serviceProvider): base(serviceProvider.GetRequiredService<T>)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|