本文整理汇总了C#中System.Version.ToVersionString方法的典型用法代码示例。如果您正苦于以下问题:C# Version.ToVersionString方法的具体用法?C# Version.ToVersionString怎么用?C# Version.ToVersionString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Version
的用法示例。
在下文中一共展示了Version.ToVersionString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnAppStart
public static void OnAppStart(Version version, LoginType loginType, bool isNew)
{
if(!Config.Instance.GoogleAnalytics)
return;
Google.TrackPageView($"/app/v{version.ToVersionString()}/{loginType.ToString().ToLower()}{(isNew ? "/new" : "")}", "");
WritePoint(new InfluxPointBuilder("hdt_app_start").Tag("version", version.ToVersionString()).Tag("login_type", loginType).Tag("new", isNew).Build());
}
示例2: OnAppStart
public static void OnAppStart(Version version, LoginType loginType, bool isNew, int startupDuration)
{
if(!Config.Instance.GoogleAnalytics)
return;
var point = new InfluxPointBuilder("hdt_app_start")
.Tag("version", version.ToVersionString()).Tag("login_type", loginType).Tag("new", isNew)
.Tag("auto_upload", Config.Instance.HsReplayAutoUpload)
.Field("startup_duration", startupDuration);
#if(SQUIRREL)
point.Tag("squirrel", true);
#else
point.Tag("squirrel", false);
#endif
WritePoint(point.Build());
}
示例3: OnAppStart
public static void OnAppStart(Version version, LoginType loginType, bool isNew)
{
if(!Config.Instance.GoogleAnalytics)
return;
WritePoint(new InfluxPointBuilder("hdt_app_start").Tag("version", version.ToVersionString()).Tag("login_type", loginType).Tag("new", isNew).Build());
}