コード例 #1
0
 public void Config(VersionHistoryRegistry registry)
 {
     registry.AddWithAutoKey(VersionHistory.Create(VersionCategory, "0.1.0", new DateTime(2018, 04, 11), "初始版本"));
     registry.AddWithAutoKey(VersionHistory.Create(VersionCategory, "0.2.0", new DateTime(2018, 04, 11), "增加ResolveAsSingleton的支持;增加GuidHelper"));
     registry.AddWithAutoKey(VersionHistory.Create(VersionCategory, "0.3.0", new DateTime(2018, 04, 12), "增加模块化的支持;"));
     registry.AddWithAutoKey(VersionHistory.Create(VersionCategory, "0.4.0", new DateTime(2018, 04, 19), "增加产品、特性支持;"));
 }
コード例 #2
0
        public static void Run()
        {
            var versionHistoryRegistry = VersionHistoryRegistry.Resolve();

            versionHistoryRegistry.Init(new List <IVersionHistoryConfig>()
            {
                new VersionHistoryConfig()
            });

            Console.WriteLine("show VersionHistoryRegistry:");
            var nbJsonSerialize = NbJsonSerialize.Resolve();
            var serialize       = nbJsonSerialize.Serialize(versionHistoryRegistry);

            Console.WriteLine(serialize);
        }