Remove references to IRuntimeEnvironment

This commit is contained in:
Pranav K 2016-04-28 08:34:42 -07:00
parent 2f8ef7ef0d
commit cb426cb325
2 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.Extensions.PlatformAbstractions;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.PlatformAbstractions;
namespace Microsoft.DotNet.Watcher.Tools
{
@ -11,9 +10,9 @@ namespace Microsoft.DotNet.Watcher.Tools
{
private readonly bool _isWindows;
public CommandOutputProvider(IRuntimeEnvironment runtimeEnv)
public CommandOutputProvider()
{
_isWindows = runtimeEnv.OperatingSystem == "Windows";
_isWindows = PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows;
}
public ILogger CreateLogger(string name)

View File

@ -22,7 +22,7 @@ namespace Microsoft.DotNet.Watcher.Tools
{
_loggerFactory = new LoggerFactory();
var commandProvider = new CommandOutputProvider(PlatformServices.Default.Runtime);
var commandProvider = new CommandOutputProvider();
_loggerFactory.AddProvider(commandProvider);
}