Skip to content

Instantly share code, notes, and snippets.

Dave Smith dls314

Block or report user

Report or block dls314

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.