Ejemplo n.º 1
0
        private static string DetectTargetFrameworks()
        {
            var targetFrameworks = RuntimeEnvironmentUtility.GetAssemblyTargetFrameworks(typeof(Data));

            return(StringUtility.Combine(targetFrameworks, "; "));
        }
Ejemplo n.º 2
0
 private static string DetectNotifierAssemblyVersion()
 {
     return(RuntimeEnvironmentUtility.GetTypeAssemblyVersion(typeof(Data)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes static members of the <see cref="Data"/> class.
 /// </summary>
 static Data()
 {
     Data.DefaultFrameworkValue = Data.DetectTargetFrameworks();
     Data.DefaultPlatform       = RuntimeEnvironmentUtility.GetOSDescription();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Detects the name of the notifier.
 /// </summary>
 /// <returns>System.String.</returns>
 private static string DetectNotifierProduct()
 {
     return(RuntimeEnvironmentUtility.GetTypeAssemblyProduct(typeof(Data)));
 }
Ejemplo n.º 5
0
 static HostBase()
 {
     HostBase.DetectedCpu = RuntimeEnvironmentUtility.GetCpuArchitecture();
 }