Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Smith dls314

View GitHub Profile
@dls314
dls314 / Program.cs
Last active Aug 14, 2017
ASP.NET Core 2 Dependency Injection Shared Singleton Service Collection Example
View Program.cs
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 { }
@dls314
dls314 / Program.cs
Created Oct 31, 2016
Test.OldAutofacStartupIntegration
View Program.cs
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 Oct 31, 2016
Test.AutofacStartupIntegration
View Program.cs
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;
You can’t perform that action at this time.