Remove another usage of CallContextServiceLocator

This commit is contained in:
Pavel Krymets 2015-10-22 14:12:52 -07:00
parent 84bfb8da3b
commit 11043cfda2
1 changed files with 2 additions and 3 deletions

View File

@ -473,9 +473,8 @@ public class Person
private IEnumerable<MetadataReference> GetReferences()
{
var services = CallContextServiceLocator.Locator.ServiceProvider;
var libraryExporter = services.GetRequiredService<ILibraryExporter>();
var environment = services.GetRequiredService<IApplicationEnvironment>();
var libraryExporter = CompilationServices.Default.LibraryExporter;
var environment = PlatformServices.Default.Application;
var references = new List<MetadataReference>();