LanguageExt.Core
by: Paul Louth
- 2 total downloads
- Latest version: 2.0.42-beta
This library uses and abuses the features of C# 6 and 7 to provide a functional 'Base class library', that, if you squint, can look like extensions to the language itself.
LinqKit.Core
by: Joseph Albahari Tomas Petricek Scott Smith Tuomas Hietanen Stef Heyenrath
- 4 total downloads
- Latest version: 1.2.7
LinqKit.Core contains extensions for LINQ to SQL and Entity Framework. Note that Include(...), IAsync and IDbAsync are not supported.
log4net
by: The Apache Software Foundation
- 35 total downloads
- Latest version: 2.0.17
log4net is a tool to help the programmer output log statements to a variety of output targets.
In case of problems with an application, it is helpful to enable logging so that the problem
can be located. With log4net it is possible to enable logging at runtime without modifying the
application binary. The log4net package is designed so that log statements can remain in
shipped code without incurring a high performance cost. It follows that the speed of logging
(or rather not logging) is crucial.
At the same time, log output can be so voluminous that it quickly becomes overwhelming.
One of the distinctive features of log4net is the notion of hierarchical loggers.
Using these loggers it is possible to selectively control which log statements are output
at arbitrary granularity.
log4net is designed with two distinct goals in mind: speed and flexibility
log4net.Ext.Json
by: Robert Cutajar Grzegorz Dziadkiewicz
- 24 total downloads
- Latest version: 2.0.10.1
Enable JSON logging in log4net.
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
- 39 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.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
- 10 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.