Remove usage of CallContextLocator

This commit is contained in:
Pavel Krymets 2015-10-29 12:06:12 -07:00
parent 22ecf85f88
commit e4d1259da5
1 changed files with 1 additions and 4 deletions

View File

@ -37,10 +37,7 @@ namespace Microsoft.AspNet.Razor.Runtime.Precompilation
syntaxTrees.Add(CSharpSyntaxTree.ParseText(resourceContent));
}
var libraryExporter = (ILibraryExporter)CallContextServiceLocator
.Locator
.ServiceProvider
.GetService(typeof(ILibraryExporter));
var libraryExporter = CompilationServices.Default.LibraryExporter;
var applicationName = ExecutingAssembly.GetName().Name;
var libraryExport = libraryExporter.GetExport(applicationName);