Skip to content

Instantly share code, notes, and snippets.

@dls314
dls314 / Program.cs
Created October 31, 2016 15:45
Test.AutofacStartupIntegration
using System;
using System.IO;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@dls314
dls314 / Program.cs
Created October 31, 2016 16:48
Test.OldAutofacStartupIntegration
using System;
using System.IO;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@dls314
dls314 / Program.cs
Last active August 14, 2017 12:52
ASP.NET Core 2 Dependency Injection Shared Singleton Service Collection Example
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace ServiceCollectionExample
{
public class Foo { }