懒得勤快 7 vuotta sitten
vanhempi
sitoutus
b979e186bc

+ 1 - 1
Masuit.Tools.Core/Masuit.Tools.Core.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netcoreapp2.0</TargetFramework>
-    <Version>1.9.3.1</Version>
+    <Version>1.9.3.2</Version>
     <Authors>懒得勤快</Authors>
     <Company>masuit.com</Company>
     <Description>包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。

+ 2 - 2
Masuit.Tools/Properties/AssemblyInfo.cs

@@ -36,7 +36,7 @@ using System.Runtime.InteropServices;
 // 方法是按如下所示使用“*”: :
 // [assembly: AssemblyVersion("1.0.*")]
 
-[assembly: AssemblyVersion("1.9.3.1")]
-[assembly: AssemblyFileVersion("1.9.3.1")]
+[assembly: AssemblyVersion("1.9.3.2")]
+[assembly: AssemblyFileVersion("1.9.3.2")]
 [assembly: NeutralResourcesLanguage("zh-CN")]
 

+ 17 - 3
NetCoreTest/Program.cs

@@ -1,5 +1,7 @@
 using System;
-using Masuit.Tools.Core.NoSQL;
+using System.Diagnostics;
+using System.Threading;
+using System.Threading.Tasks;
 
 namespace NetCoreTest
 {
@@ -7,8 +9,20 @@ namespace NetCoreTest
     {
         static void Main(string[] args)
         {
-            RedisHelper helper = new RedisHelper();
-            Console.WriteLine("Hello World!");
+            var sw = new Stopwatch();
+            sw.Start();
+            var t = SayHello();
+            Thread.Sleep(4000);
+            Console.WriteLine(t.Result);
+            Console.WriteLine(sw.ElapsedMilliseconds);
+            Console.ReadKey();
         }
+        public static async Task<string> SayHello()
+        {
+            Thread.Sleep(5000);
+            await Task.Delay(5000);
+            return "hello world";
+        }
+
     }
 }