Skip to content

Instantly share code, notes, and snippets.

static void Main()
{
var builder = new ContainerBuilder();
builder.RegisterType<SomeDependency>().SingleInstance();
builder.RegisterTypeWithCaching<MyApplicationService>().SingleInstance();
var container = builder.Build();
var proxy = container.Resolve<MyApplicationService>();
TestCase1(proxy);