Example #1
0
        private static string DetectTargetFrameworks()
        {
            var targetFrameworks = RuntimeEnvironmentUtility.GetAssemblyTargetFrameworks(typeof(Data));

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