你的位置: 首页 / 资讯列表 / 分类资讯

最新.NET/.NET Core/Web开发资讯源


14 热度

ASP.NET Core - JWT认证实现

JWT介绍就太多了,这里主要关注下Jwt的结构。Jwt中包含三个部分:Header(头部).Payload(负载).Signature(签名)...

收录时间: 2021-01-18
分类: ASP.NET Core
贡献者: Rector
12 热度

使用 C# 9 的records作为强类型ID - 路由和查询参数

上一篇文章,我介绍了使用 C# 9 的record类型作为强类型id,非常简洁....但是在强类型id真正可用之前,还有一些问题需要解决,比如,ASP.NET Core并不知道如何在路由参数或查询字符串参数中正确的处理它们,在这篇文章中,我将展示如何解决这个问题。路由和查询字符串参数的模型绑定假设我们有一个这样的实体...

收录时间: 2021-01-18
分类: C#开发
贡献者: Rector
13 热度

RPC & ASP.NET Core 5: Discover gRPCui, the GUI alternative to gRPCurl

In a previous article, I have introduced you gRPCurl a command line tool that allows you test you gRPC endpoints: gRPC & ASP.NET Core 5: Test gRPC endpoints with gRPCurl – Anthony Giretti’s .NET blog. In this article I’ll introduce you gRPCui which is quite the same tool, but available as a web tool, built on top on gRPCurl.

收录时间: 2021-01-18
分类: ASP.NET Core
贡献者: Rector
20 热度

Entity Framework Core 5 Resources I’ve Created Recently

Whether you are new to EF / EF Core or moving from an earlier version, I’ve been pretty busy creating a number of useful resources for you whether you prefer to learn by video, reading or listening!

收录时间: 2021-01-18
贡献者: Rector
19 热度

.NET 调整图片尺寸(Resize)各种方法

本文中如无特别说明 .NET 指 .NET 5或者更高版本,代码同样可用于 .NET Core前言调整图片尺寸最常用的场景就是生成缩略图,一般为保持纵横比缩小,如果图片放大会使图片变得模糊,如果确实有这方面的需求,可以寻找开源的AI放大图片的方法...

收录时间: 2021-01-15
分类: .NET
贡献者: Rector
17 热度

dotnet 自动迁移 VS 2017 以前的 csproj 转为 dotnet core 的 SDK Style 风格工具

本文来安利大家一个特别好用的工具,可以自动将 VisualStudio 2017 以前版本创建的 Franken-proj 格式 的 csproj 项目文件转换为 dotnet core 的 SDK Style 风格的csproj 项目文件的工具

收录时间: 2021-01-15
分类: .NET Core
贡献者: Rector
AD 友情赞助
20 热度

Polly and Blazor, Part 2 – Using the Context

This post is a short follow up on the one where I used Polly Wait and Retry in Blazor. In that previous post I used variables defined in my C# method to pass information back to the calling code, to display on the screen. But here I’m going to show how the Polly Context could be used instead.

收录时间: 2021-01-15
分类: Blazor
贡献者: Rector
18 热度

如何在 ASP.Net Core 中实现健康检查

健康检查 常用于判断一个应用程序能否对 request 请求进行响应,ASP.Net Core 2.2 中引入了 健康检查 中间件用于报告应用程序的健康状态。ASP.Net Core 中的 健康检查 落地做法是暴露一个可配置的 Http 端口,你可以使用 健康检查 去做一个最简单的活性检测,比如说:检查网络和系统的资源可用性,数据库资源是否可用,应用程序依赖的消息中间件或者 Azure cloud service 的可用性 等等,这篇文章我们就来讨论如何使用这个 健康检查中间件。

收录时间: 2021-01-15
分类: ASP.NET Core
贡献者: Rector
18 热度

Ocelot一个优秀的.NET API网关框架

Ocelot是一个用.NET Core实现并且开源的API网关,它功能强大,包括了:路由、请求聚合、服务发现、认证、鉴权、限流熔断、并内置了负载均衡器与Service Fabric、Butterfly Tracing集成。

收录时间: 2021-01-15
分类: .NET Core
贡献者: Rector
16 热度

Base64 Encoding With C#

I was working with the Spotify API and reading through the authorization documentation. Like most APIs, we need to securely access the service, authorized as the client application or on behalf of a user. We’ll need to deal with secret tokens and likely encode them into a Base64 string in that process. The client credentials flow requires we concatenate the service provided secrets of clientId and clientSecret, after which we Base64 encode the result.

收录时间: 2021-01-15
分类: C#开发
贡献者: Rector
17 热度

Understanding Microsoft's Docker Images for .NET Apps

To run .NET apps in containers you need to have the .NET Framework or .NET Core runtime installed in the container image. That's not something you need to manage yourself, because Microsoft provide Docker images with the runtimes already installed, and you'll use those as the base image to package your own apps. There are several variations of .NET images, covering different versions and different runtimes. This is your guide to picking the right image for your applications.

收录时间: 2021-01-15
分类: .NET Core
贡献者: Rector
17 热度

Persisting your users preferences using Blazor and Local Storage

In the last post we saw how you can use TailwindCSS with Blazor to toggle “dark mode” on and off in your web applications. But it’s a pain for your users to have to do this every time. It would be much nicer if this setting was persisted in some way. That way, they’d get the same “mode” each and every time they visit your site.

收录时间: 2021-01-15
分类: Blazor
贡献者: Rector
28 热度

记一次使用Asp.Net Core WebApi 5.0+Dapper+Mysql+Redis+Docker的开发过程

我可能有三年没怎么碰C#了,目前的工作是在全职搞前端,最近有时间抽空看了一下Asp.net Core,Core版本号都到了5.0了,也越来越好用了,下面将记录一下这几天以来使用Asp.Net Core WebApi+Dapper+Mysql+Redis+Docker的一次开发过程。

收录时间: 2021-01-14
分类: ASP.NET Core
贡献者: Rector
25 热度

.NET的并发编程(TPL编程)是什么?

优秀软件的一个关键特征就是具有并发性。过去的几十年,我们可以进行并发编程,但是难度很大。以前,并发性软件的编写、调试和维护都很难,这导致很多开发人员为图省事放弃了并发编程。新版 .NET 中的程序库和语言特征,已经让并发编程变得简单多了。随着 Visual Studio 2012 的发布,微软明显降低了并发编程的门槛。以前只有专家才能做并发编程,而今天,每一个开发人员都能够(而且应该)接受并发编程。

收录时间: 2021-01-14
分类: .NET
贡献者: Rector
20 热度

Logging to DataDog with Serliog and .Net 5

This is a quick post to showing how to setup a .Net 5 Web Api application with logging to DataDog from your local computer.

收录时间: 2021-01-14
分类: .NET 5
贡献者: Rector
AD 友情赞助
24 热度

gRPC & ASP.NET Core 5: Test gRPC endpoints with gRPCurl

Do you know Curl? The tool that allows you to transfer data through HTTP (and others such as IMAP, FTP etc.) to the order line? Well know that a tool based on the same principle for gRPC exists: gRPCurl. In this article I will explain how to install and use gRPCurl to test your gRPC endpoints with ASP. NET Core 5.

收录时间: 2021-01-14
分类: ASP.NET Core
贡献者: Rector
22 热度

Diagnostics improvements in .NET 5

Building upon the diagnostics improvements we introduced in .NET Core 3.0, we’ve been hard at work further improving this space. I’m excited to introduce the next wave of diagnostics improvements.

收录时间: 2021-01-14
分类: .NET 5
贡献者: Rector
22 热度

Packaging a WinUI3 Desktop Application

This week I’ve been looking further into where WinUI3 is at and specifically how it relates to both Win32 and UWP applications. Along this journey I ran into a slight issue with WinUI3 for Desktop application that simply wouldn’t run if I published and then installed the package. In this post I’m going to walk through creating, publishing, installing and running a WinUI3 application.

收录时间: 2021-01-14
分类: .NET
贡献者: Rector
27 热度

.NET January 2021 Updates – 5.0.2, 3.1.11, 2.1.24

Today, we are releasing the .NET January 2021 Updates. These updates contains reliability and security improvements. See the individual release notes for details on updated packages. You can download 5.0.2 , 3.1.11, 2.1.24 versions for Windows, macOS, and Linux, for x86, x64, Arm32, and Arm64.

收录时间: 2021-01-13
分类: .NET
贡献者: Rector
35 热度

.NET Framework January Security and Quality Rollup Update

Today, we are releasing the January 2021 Security and Quality Rollup Updates for .NET Framework.

收录时间: 2021-01-13
分类: .NET
贡献者: Rector
AD 友情赞助