Kerwen Blog

Stay Hungry Stay Foolish

OWIN

OWIN是Open Web Server Interface for .NET的首字母缩写. OWIN在.NET Web Servers与Web Application之间定义了一套标准接口,OWIN的目标是用于解耦Web Server和Web Application。基于此标准,鼓励开发者开发简单、灵活的模块,从而推进.NET Web Development开源生态系统的发展。 为什么需...

Signal R

ASP.NET Core SignalR 是一个开放源代码库,可用于简化向应用添加实时 Web 功能。 实时 Web 功能使服务器端代码能够将内容推送到客户端。 SignalR 支持以下用于处理实时通信的技术(按正常回退的顺序): WebSockets Server-Sent Events 长轮询 SignalR 自动选择服务器和客户端能力范围内的最佳传输方法。 Server 创...

IEnumerable IActionResult ActionResult

在 ASP.NET Core 中有三种返回 数据 和 HTTP状态码 的方式 IEnumerable IEnumerable只能返回数据,附带不了http状态码 1 2 3 4 5 [HttpGet] public IEnumerable<Author> Get() { return authors; } 在 ASP.NET Core 3.0 开始,你不仅可以定义同...

Wix Heat自动link文件夹下的所有内容

Harvest a directory 1 heat dir ".\My Files" -gg -sfrag -template:fragment -out directory.wxs Harvest Tool (Heat)

Basic, Digest and JWT Authentication

Authentication is knowing the identity of the user. For example, Alice logs in with her username and password, and the server uses the password to authenticate Alice. Authorization is deciding whet...

Angular Resolver

Angular-Resolve 理解Angular中的Resolver

AddTransient AddScoped AddSingleton

Transient objects are always different; a new instance is provided to every controller and every service. Scoped objects are the same within a request, but different across different requests. Si...

Angular本地化

Angular本地化有两种方式,一种是Angular官网推荐的i18n标记,另外一种是ngx-translate Angular Angular/localize 要利用 Angular 的本地化功能,请用 Angular CLI 将 @angular/localize 包添加到你的项目中。 1 ng add @angular/localize Angular 提供了以下内置的数据转...

.net Core ILogger使用

Reference Logging in .NET Core and ASP.NET Core .NET Core3.0 日志 logging 玩转ASP.NET Core中的日志组件 .net core 日志引擎 .NET Core 依赖注入改造(3)- ILogger

RESTful vs GraphQL

RESTful REST作为一种现代网络应用非常流行的软件架构风格,自从Roy Fielding博士在2000年他的博士论文中提出来到现在已经有了20年的历史。它的简单易用性,可扩展性,伸缩性受到广大Web开发者的喜爱。 REST 的 API 配合JSON格式的数据交换,使得前后端分离、数据交互变得非常容易,而且也已经成为了目前Web领域最受欢迎的软件架构设计模式。 但随着REST AP...