Info
| Version: | 1.0.9 |
| Author(s): | lindexi |
| Last Update: | Thursday, July 7, 2016 |
| .NET Fiddle: | Create the first Fiddle |
| Project Url: | https://github.com/lindexi/Imageshack |
| NuGet Url: | https://www.nuget.org/packages/Imageshack.lindexi |
Install
Install-Package Imageshack.lindexi
dotnet add package Imageshack.lindexi
paket add Imageshack.lindexi
Imageshack.lindexi Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
//传入文件
smms.Model.Imageshack imageshack = new Imageshack()
{
File=File,
};
//上传完成事件,其中str为sm.ms返回,一般为json
//Reminder是例子,可以根据具体修改,注意要同步CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync
imageshack.OnUploadedEventHandler += (sender, str) => Reminder = str.Replace("\\/","/");
//上传
imageshack.UpLoad();
}.