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

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


12 热度

[ASP.NET Core 3框架揭秘] Options[7]: 与配置系统的整合

Options模型本身与配置系统完全没有关系,但是配置在大部分情况下会作为绑定Options对象的数据源,所以有必要将两者结合在一起。与《扩展与定制》演示的两个例子一样,针对配置系统的集成同样是通过定制Options模型相应的对象来实现的。具体来说,集成配置系统需要解决如下两个问题:将承载配置数据的IConfiguration对象绑定为Options对象。自动感知配置数据的变化。第一个问题涉及针对Options对象的初始化问题,这自然是通过自定义IConfigureOptions实现类型来解决的,具体来说就是下面的NamedConfigureFromConfigurationOptions类型...

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

Git for Windows 2.25.0 发布

Git for Windows 2.25.0 发布了。Git for Windows 是一个 Windows 版的 Git 客户端,它提供轻量级的本地工具集,将 Git SCM 的完整功能集引入Windows,同时提供了 GUI。 此版本新功能包括: ...

收录时间: 2020-01-20
分类: Git
贡献者: Rector
10 热度

TiDB 4.0.0-beta 发布,分布式 NewSQL 数据库

TiDB 4.0.0-beta 现已发布, 该版本更新内容如下: Improvements Index Join通过考虑驱动表和从动表的行数来提高计算成本的准确性#12085 当索引中可以完全覆盖查询中涉及的列时,提高性能#...

收录时间: 2020-01-20
分类: 数据库
贡献者: Rector
29 热度

C# 中 ConfigureAwait 相关答疑FAQ

在前段时间经常看到园子里有一些文章讨论到 ConfigureAwait,刚好今天在微软官方博客看到了 Stephen Toub前不久的一篇答疑 ConfigureAwait 的一篇文章,想翻译过来。原文地址:https://devblogs.microsoft.com/dotnet/configureawait-faq/.NET 加入 async/await 特性已经有 7 年了。这段时间,它蔓延的非常快,广泛;不只在 .NET 生态系统,也出现在其他语言和框架中。在 .NET 中,他见证了许多了改进,利用异步在其他语言结构(additio...

收录时间: 2020-01-19
分类: C#开发
贡献者: Rector
25 热度

My First Xamarin app

A few days ago, my daughter was in a real funk. It breaks my heart to see her struggle. Fortunately, I knew exactly what to do, “build a mobile app!”Before the humorless among you think I’m a callous parent, that’s not exactly what I did of course. I gave her money.I kid. What I really did was liste...

收录时间: 2020-01-18
分类: Xamarin
贡献者: Rector
24 热度

C# Futures: Simplified Parameter Null Validation

At first glance, proposal #2145 seems like a logical extension to C# 8’s Nullable Reference Types feature. The basic idea is developers would no longer need to explicitly add argument null checks to methods that accept non-nullable parameters. However, this has become quite contentious.

收录时间: 2020-01-18
分类: C#开发
贡献者: Rector
AD 友情赞助
20 热度

Blazor Mobile, Uno Platform, and WebAssembly

On Tuesday, the ever-impressive Blazor team announced a new experimental project: Mobile Bindings that allow developers to write Blazor-style syntax that produces Xamarin.Forms UI controls instead of HTML elements, therefore producing native iOS and Android applications.

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

Don't Do It All Yourself: Exploiting gRPC Well Known Types in .NET Core

In an earlier column, I described how to define the message formats that clients can use to communicate with your gRPC services. I followed that up with another column that showed how you can re-use and import definitions. I mention those columns because in both of them I whined about how the Protocol Buffer (ProtoBuf) specification doesn't include some data types that I take for granted: date and decimal, to be precise (out of the box, ProtoBuf expects you to use the imprecise float type for data with decimals).

收录时间: 2020-01-18
分类: .NET Core
贡献者: Rector
33 热度

.net Core 使用IHttpClientFactory请求

导读:本文已添加在晨曦微服务之旅,现在自己在尝试微服务架构,一边学边做项目快速的进入状态。当然在学习的过程中会将自己学到的知识进行分享。 一、为什么不用HttpClient 1.HttPClient使用完之后不会立即关闭开启网络连接时会占用底层socket资源,但在HttpClient调用其本身的D ...

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

.NET Core 2020 年 1 月更新,2.1.15、3.0.2 和 3.1.1

.NET Core 2020 年 1 月更新已发布,覆盖2.1.15、3.0.2 和 3.1.1。 这些更新包含安全性和可靠性修复程序。有关更新程序包的详细信息,请参见各个发行说明。 .NET Core 3.1.1和.NET Core SDK...

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

CSS4 is here!

I think that CSS would be greatly helped if we solemnly state that “CSS4 is here!” In this post I’ll try to convince you of my viewpoint. I am proposing that we web developers, supported by the W3C CSS WG, start saying “CSS4 is here!” and excitedly chatter about how it will hit the market any moment now and transform the practice of CSS.

收录时间: 2020-01-17
分类: CSS
贡献者: Rector
48 热度

Using gRPC-Web with Blazor WebAssembly

If you already know all about gRPC and gRPC-Web, you can skip ahead to adding gRPC services to a Blazor WebAssembly application. And if you just want some sample Blazor WebAssembly + gRPC-Web apps, see this repo.The status quoIn Blazor WebAssembly, like in all other browser-based single-page app (SP...

收录时间: 2020-01-17
分类: Blazor
贡献者: Rector
38 热度

UTF-8 BOM adventures in C#

Time for a quick look at UTF-8 encoding and byte order marker (BOM). Lets jump right into some code. You are probably going to nail this as you most likely will be alert now, given the title and all, but would you have expected this test to pass?

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

Refreshing your Legacy ASP.NET IdentityServer Client Applications (with PKCE)

If you have an ASP.NET MVC application in production that uses IdentityServer, you may soon find yourself in its codebase due to the upcoming SameSite cookie changesspearheaded by Google.While you’re in there messing with the code, why don’t you give your old application a freshen up and update your...

收录时间: 2020-01-17
分类: ASP.NET
贡献者: Rector
64 热度

EntityFramework Core表名原理解析,让我来,揭开你神秘的面纱

上一节我们针对最开始抛出的异常只是进行了浅尝辄止的解析,是不是有点意犹未尽的感觉,是的,我也有这种感觉,看到这里相信您和我会有一些疑惑,要是我们接下来通过注解、Fluent APi、DbSet分别对表名进行如下设置,是否会抛出异常呢?若不是,有其优先级,那么其优先级到底是怎样的呢?内置具体是如何实现的呢?让我们从头开始揭开其神秘的面纱。EntityFramework Core表名原理解析我们暂不知道到底是否有其优先级还是会抛出异常,那么接下来我们进行如下配置(模型请参考上一节《https://www.cnblogs.com/CreateMyself/p/12175618.html》)进行原...

收录时间: 2020-01-16
贡献者: Rector
AD 友情赞助
50 热度

.NET Core 3 WPF MVVM框架 Prism系列之事件聚合器

本文将介绍如何在.NET Core3环境下使用MVVM框架Prism的使用事件聚合器实现模块间的通信一.事件聚合器在上一篇 .NET Core 3 WPF MVVM框架 Prism系列之模块化我们留下了一些问题,就是如何处理同模块不同窗体之间的通信和不同模块之间不同窗体的通信,Prism提供了一种事件机制,可以在应用程序中低耦合的模块之间进行通信,该机制基于事件聚合器服务,允许发布者和订阅者之间通过事件进行通讯,且彼此之间没有之间引用,这就实现了模块之间低耦合的通信方式,下面引用官方的一个事件聚合器模型图:二.创建和发布事件1.创建事件首先我们来处理同模块不同窗体之间的通讯,我们在PrismM...

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

Windows Terminal Preview v0.8 发布

Windows Terminal Preview v0.8 已经发布,该版本内容如下: Search 终端添加了搜索功能,调用搜索下拉列表的默认键绑定是 {"command": "find", "keys": ["ctrl+shift+f"]}。你也可以在 prof...

收录时间: 2020-01-16
分类: 技术资讯
贡献者: Rector
63 热度

Atom 1.43.0 发布,改进各种语法高亮

Atom 1.43.0 发布了。Atom 是 GitHub 专门为程序员推出的一个跨平台文本编辑器。具有简洁和直观的图形用户界面,并有很多有趣的特点:支持 CSS、HTML 与 JavaScript 等网页编程语言,支持宏、...

收录时间: 2020-01-16
分类: 开发工具
贡献者: Rector
73 热度

Collecting and analyzing memory dumps

Building upon the diagnostics improvements introduced in .NET Core 3.1, we’ve introduced a new tool for collecting heap dumps from a running .NET Core process. In a previous blog post we introduced, dotnet-dump, a tool to allow you to capture and analyze process dumps. Since then, we’ve been hard at work to improve the experience when working with dumps.

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

ASP.NET Core IIS InProcess Hosting Issue in .NET Core 3.1

I ran into a nasty issue yesterday related to hosting an ASP.NET Core 3.1 server application in IIS using the default InProcess hosting. If you're not familiar with ASP.NET Core hosting in IIS, here is a previous post that provides more insight on the two hosting modes, how they work and how they di...

收录时间: 2020-01-16
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助