Skip to content

Commit 85f355e

Browse files
committed
[ISSUE-153] 新增LabMD5,修复UnixTimestamp计算的问题
1 parent 6032af2 commit 85f355e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+16702
-98
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
**2017-02-24**
2+
3+
最新版本v7.2.12,适用于.NET Framework 2.0+ , .NET Core 和 UWP
4+
5+
新增:MD5哈希函数的3rdParty实现(避免FIPS问题)
6+
7+
修复:日期时间戳转换的bug(时间基准设置不对)
8+
9+
* * *
10+
111
**2017-02-16**
212

313
最新版本v7.2.11,适用于.NET Framework 2.0+ , .NET Core 和 UWP

README.en-US.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ This C# SDK is built based on Qiniu Cloud API (see below), and it can be used on
1010

1111
You can have a better view of this SDK by checking the documnets given below:
1212

13-
* [SDK-reference HTML Online](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-ref-v7.2.11/index.html)
13+
* [SDK-reference HTML Online](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-ref-v7.2.12/index.html)
1414

15-
* [SDK-reference CHM Offline](http://oiy037d6a.bkt.clouddn.com/QiniuCSharpSDK-Ref-v7.2.11.chm)
15+
* [SDK-reference CHM Offline](http://oiy037d6a.bkt.clouddn.com/QiniuCSharpSDK-Ref-v7.2.12.chm)
1616

17-
Want to know more about how to using this SDK? Are you trying to find some code examples based on this SDK? These documents or links below will be helpful:
17+
Want to know more about how to using this SDK? Are you trying to find some code examples based on this SDK? These examples (**UWP app** example included) or links below will be helpful:
1818

19-
* [github/csharp-sdk-shared-examples](https://github.com/fengyhack/csharp-sdk-shared-examples)
19+
* [github/csharp-sdk-shared-examples](https://github.com/qiniu/csharp-sdk/tree/master/examples)
2020

2121
* [SDK manual | examples](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-man-v7.2.11/index.html)
2222

23-
Or if you want to develop **UWP apps**, see example(s) given below.
24-
25-
* [github | csharp-sdk-example-uwp](https://github.com/fengyhack/csharp-sdk-example-uwp)
26-
2723
##How-to-install
2824

2925
Releases can be found [here](https://github.com/fengyhack/csharp-sdk-shared/releases), choose the one you need and unzipped it, then add reference to the *.dll file in your project.

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,15 @@
1010

1111
以下文档用于检索SDK接口、属性说明,它将有助于您理解SDK的结构。
1212

13-
* [HTML在线浏览](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-ref-v7.2.11/index.html)
13+
* [HTML在线浏览](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-ref-v7.2.12/index.html)
1414

15-
* [CHM文件下载](http://oiy037d6a.bkt.clouddn.com/QiniuCSharpSDK-Ref-v7.2.11.chm)
15+
* [CHM文件下载](http://oiy037d6a.bkt.clouddn.com/QiniuCSharpSDK-Ref-v7.2.12.chm)
1616

17-
以下文档/链接提供一些基本示例,参考这些示例可以帮助您更快熟悉如何使用这套SDK。
17+
以下链接提供了一些示例(包含**UWP应用**示例),参考这些示例可以帮助您更快熟悉如何使用这套SDK。
1818

19-
* [github | csharp-sdk-examples](https://github.com/fengyhack/csharp-sdk-examples)
19+
* [github | csharp-sdk-examples](https://github.com/qiniu/csharp-sdk/tree/master/examples)
2020

21-
* [C# SDK使用指南 | 代码示例](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-man-v7.2.11/index.html)
22-
23-
如果您想开发**UWP应用**,您也可以参考如下示例。
24-
25-
* [github | csharp-sdk-example-uwp](https://github.com/fengyhack/csharp-sdk-example-uwp)
21+
* [C# SDK使用指南 | 代码示例](http://oiy037d6a.bkt.clouddn.com/csharp-sdk-man-v7.2.12/index.html)
2622

2723
##如何安装
2824

bin/qiniu-csharp-sdk-v7.2.11.zip

-295 KB
Binary file not shown.

bin/qiniu-csharp-sdk-v7.2.12.zip

307 KB
Binary file not shown.

examples/CHANGELOG.md

Whitespace-only changes.

examples/Examples.UWP.sln

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Qiniu.Examples.UWP", "Examples.UWP\Qiniu-Example-UWP.csproj", "{50714AB2-D3BA-4B80-92F3-E02D980CF346}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM = Debug|ARM
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|ARM = Release|ARM
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|ARM.ActiveCfg = Debug|ARM
19+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|ARM.Build.0 = Debug|ARM
20+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|ARM.Deploy.0 = Debug|ARM
21+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x64.ActiveCfg = Debug|x64
22+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x64.Build.0 = Debug|x64
23+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x64.Deploy.0 = Debug|x64
24+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x86.ActiveCfg = Debug|x86
25+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x86.Build.0 = Debug|x86
26+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Debug|x86.Deploy.0 = Debug|x86
27+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|ARM.ActiveCfg = Release|ARM
28+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|ARM.Build.0 = Release|ARM
29+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|ARM.Deploy.0 = Release|ARM
30+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x64.ActiveCfg = Release|x64
31+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x64.Build.0 = Release|x64
32+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x64.Deploy.0 = Release|x64
33+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x86.ActiveCfg = Release|x86
34+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x86.Build.0 = Release|x86
35+
{50714AB2-D3BA-4B80-92F3-E02D980CF346}.Release|x86.Deploy.0 = Release|x86
36+
EndGlobalSection
37+
GlobalSection(SolutionProperties) = preSolution
38+
HideSolutionNode = FALSE
39+
EndGlobalSection
40+
EndGlobal

examples/Examples.UWP/App.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application
2+
x:Class="QiniuExampleUWP.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:QiniuExampleUWP"
6+
RequestedTheme="Light">
7+
8+
</Application>

examples/Examples.UWP/App.xaml.cs

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Windows.ApplicationModel;
7+
using Windows.ApplicationModel.Activation;
8+
using Windows.Foundation;
9+
using Windows.Foundation.Collections;
10+
using Windows.UI.Xaml;
11+
using Windows.UI.Xaml.Controls;
12+
using Windows.UI.Xaml.Controls.Primitives;
13+
using Windows.UI.Xaml.Data;
14+
using Windows.UI.Xaml.Input;
15+
using Windows.UI.Xaml.Media;
16+
using Windows.UI.Xaml.Navigation;
17+
18+
namespace QiniuExampleUWP
19+
{
20+
/// <summary>
21+
/// 提供特定于应用程序的行为,以补充默认的应用程序类。
22+
/// </summary>
23+
sealed partial class App : Application
24+
{
25+
/// <summary>
26+
/// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
27+
/// 已执行,逻辑上等同于 main() 或 WinMain()。
28+
/// </summary>
29+
public App()
30+
{
31+
this.InitializeComponent();
32+
this.Suspending += OnSuspending;
33+
}
34+
35+
/// <summary>
36+
/// 在应用程序由最终用户正常启动时进行调用。
37+
/// 将在启动应用程序以打开特定文件等情况下使用。
38+
/// </summary>
39+
/// <param name="e">有关启动请求和过程的详细信息。</param>
40+
protected override void OnLaunched(LaunchActivatedEventArgs e)
41+
{
42+
#if DEBUG
43+
if (System.Diagnostics.Debugger.IsAttached)
44+
{
45+
this.DebugSettings.EnableFrameRateCounter = true;
46+
}
47+
#endif
48+
Frame rootFrame = Window.Current.Content as Frame;
49+
50+
// 不要在窗口已包含内容时重复应用程序初始化,
51+
// 只需确保窗口处于活动状态
52+
if (rootFrame == null)
53+
{
54+
// 创建要充当导航上下文的框架,并导航到第一页
55+
rootFrame = new Frame();
56+
57+
rootFrame.NavigationFailed += OnNavigationFailed;
58+
59+
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
60+
{
61+
//TODO: 从之前挂起的应用程序加载状态
62+
}
63+
64+
// 将框架放在当前窗口中
65+
Window.Current.Content = rootFrame;
66+
}
67+
68+
if (e.PrelaunchActivated == false)
69+
{
70+
if (rootFrame.Content == null)
71+
{
72+
// 当导航堆栈尚未还原时,导航到第一页,
73+
// 并通过将所需信息作为导航参数传入来配置
74+
// 参数
75+
rootFrame.Navigate(typeof(MainPage), e.Arguments);
76+
}
77+
// 确保当前窗口处于活动状态
78+
Window.Current.Activate();
79+
}
80+
}
81+
82+
/// <summary>
83+
/// 导航到特定页失败时调用
84+
/// </summary>
85+
///<param name="sender">导航失败的框架</param>
86+
///<param name="e">有关导航失败的详细信息</param>
87+
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
88+
{
89+
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
90+
}
91+
92+
/// <summary>
93+
/// 在将要挂起应用程序执行时调用。 在不知道应用程序
94+
/// 无需知道应用程序会被终止还是会恢复,
95+
/// 并让内存内容保持不变。
96+
/// </summary>
97+
/// <param name="sender">挂起的请求的源。</param>
98+
/// <param name="e">有关挂起请求的详细信息。</param>
99+
private void OnSuspending(object sender, SuspendingEventArgs e)
100+
{
101+
var deferral = e.SuspendingOperation.GetDeferral();
102+
//TODO: 保存应用程序状态并停止任何后台活动
103+
deferral.Complete();
104+
}
105+
}
106+
}
1.4 KB
Loading

0 commit comments

Comments
 (0)