MailKit
by: Jeffrey Stedfast
- 37 total downloads
- Latest version: 2.9.0
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices.
Features include:
* HTTP, Socks4, Socks4a and Socks5 proxy support.
* SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2.
* A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8.
* A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG.
* A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ANNOTATE, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, REPLACE, SAVEDATE, XLIST, and X-GM-EXT1.
* Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported).
* Asynchronous versions of all methods that hit the network.
* S/MIME, OpenPGP, DKIM and ARC support via MimeKit.
* Microsoft TNEF support via MimeKit.
Masuit.Tools.Core
by: 懒得勤快
- 3 total downloads
- Latest version: 1.8.0
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取CPU核心数
int core = SystemInfo.GetCpuCount();
3.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
4.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" /><!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]--><script src="/Scripts/modernizr"></script><div id="searchBox" role="search"><form action="/packages" method="get"><span class="user-actions"><a href="/users/account/LogOff">退出</a></span><input name="q" id="searchBoxInput" /><input id="searchBoxSubmit" type="submit" value="Submit" /></form></div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
5.整理操作系统的内存:
Windows.ClearMemorySilent();
......
Microsoft.AspNet.Mvc
by: Microsoft
- 38 total downloads
- Latest version: 5.3.0
This package contains the runtime assemblies for ASP.NET MVC. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup.
Microsoft.AspNet.WebPages
by: Microsoft
- 18 total downloads
- Latest version: 3.3.0
This package contains core runtime assemblies shared between ASP.NET MVC and ASP.NET Web Pages.
Microsoft.AspNetCore.Antiforgery
by: Microsoft
- 16 total downloads
- Latest version: 2.0.0
An antiforgery system for ASP.NET Core designed to generate and validate tokens to prevent Cross-Site Request Forgery attacks.
Microsoft.AspNetCore.App.Ref
by: Microsoft
- 66 total downloads
- Latest version: 10.0.5
Shared Framework for hosting of Microsoft ASP.NET Core applications. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/dotnet/dotnet). We happily accept issues and PRs.
Microsoft.AspNetCore.Authentication
by: Microsoft
- 10 total downloads
- Latest version: 2.0.0
ASP.NET Core common types used by the various authentication middleware components.
Microsoft.AspNetCore.Authentication.Abstractions
by: Microsoft
- 1 total downloads
- Latest version: 2.0.0
ASP.NET Core common types used by the various authentication components.
Microsoft.AspNetCore.Authentication.Cookies
by: Microsoft
- 6 total downloads
- Latest version: 2.0.0
ASP.NET Core middleware that enables an application to use cookie based authentication.
Microsoft.AspNetCore.Authentication.JwtBearer
by: Microsoft
- 2 total downloads
- Latest version: 2.0.0
ASP.NET Core middleware that enables an application to receive an OpenID Connect bearer token.
Microsoft.AspNetCore.Authentication.OAuth
by: Microsoft
- 1 total downloads
- Latest version: 2.0.0
ASP.NET Core middleware that enables an application to support any standard OAuth 2.0 authentication workflow.
Microsoft.AspNetCore.Authentication.OpenIdConnect
by: Microsoft
- 8 total downloads
- Latest version: 1.1.3
ASP.NET Core middleware that enables an application to support the OpenID Connect authentication workflow.
Microsoft.AspNetCore.Authorization
by: Microsoft
- 7 total downloads
- Latest version: 2.0.0
ASP.NET Core authorization classes.
Commonly used types:
Microsoft.AspNetCore.Authorization.AllowAnonymousAttribute
Microsoft.AspNetCore.Authorization.AuthorizeAttribute
Microsoft.AspNetCore.Cors
by: Microsoft
- 8 total downloads
- Latest version: 2.0.0
CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing.
Commonly used types:
Microsoft.AspNetCore.Cors.DisableCorsAttribute
Microsoft.AspNetCore.Cors.EnableCorsAttribute
Microsoft.AspNetCore.Cryptography.Internal
by: Microsoft
- 21 total downloads
- Latest version: 2.0.0
Infrastructure for ASP.NET Core cryptographic packages. Applications and libraries should not reference this package directly.
Microsoft.AspNetCore.Cryptography.KeyDerivation
by: Microsoft
- 14 total downloads
- Latest version: 2.0.0
ASP.NET Core utilities for key derivation.
Microsoft.AspNetCore.DataProtection
by: Microsoft
- 18 total downloads
- Latest version: 2.0.0
ASP.NET Core logic to protect and unprotect data, similar to DPAPI.
Microsoft.AspNetCore.DataProtection.Abstractions
by: Microsoft
- 11 total downloads
- Latest version: 2.0.0
ASP.NET Core data protection abstractions.
Commonly used types:
Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Microsoft.AspNetCore.DataProtection.IDataProtector
Microsoft.AspNetCore.Diagnostics.Abstractions
by: Microsoft
- 2 total downloads
- Latest version: 1.1.2
ASP.NET Core diagnostics middleware abstractions and feature interface definitions.
Microsoft.AspNetCore.Hosting
by: Microsoft
- 6 total downloads
- Latest version: 2.0.0-preview2-final
ASP.NET Core hosting infrastructure and startup logic for web applications.