Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Move away from constructor injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaylorMullen committed Dec 9, 2015
1 parent 3b920e0 commit e33e929
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Microsoft.AspNet.Tooling.Razor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,11 @@ namespace Microsoft.AspNet.Tooling.Razor
{
public class Program
{
private readonly IAssemblyLoadContext _assemblyLoadContext;

public Program(IAssemblyLoadContextAccessor assemblyLoadContextAccessor)
{
_assemblyLoadContext = assemblyLoadContextAccessor.Default;
}

public int Main(string[] args)
{
try
{
var loadContext = PlatformServices.Default.AssemblyLoadContextAccessor.Default;
var app = new CommandLineApplication
{
Name = "razor-tooling",
Expand All @@ -32,7 +26,7 @@ public int Main(string[] args)
app.HelpOption("-?|-h|--help");

ResolveProtocolCommand.Register(app);
ResolveTagHelpersCommand.Register(app, _assemblyLoadContext);
ResolveTagHelpersCommand.Register(app, loadContext);

app.OnExecute(() =>
{
Expand Down

0 comments on commit e33e929

Please sign in to comment.