You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.EnvironmentInfo
|
|
|
|
{
|
|
|
|
public interface IPlatformInfo
|
|
|
|
{
|
|
|
|
Version Version { get; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class PlatformInfo : IPlatformInfo
|
|
|
|
{
|
|
|
|
private static Version _version;
|
|
|
|
|
|
|
|
static PlatformInfo()
|
|
|
|
{
|
|
|
|
_version = Environment.Version;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static string PlatformName
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return ".NET";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public Version Version => _version;
|
|
|
|
|
|
|
|
public static Version GetVersion()
|
|
|
|
{
|
|
|
|
return _version;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|