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

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


7 热度

使用SignalR ASP.NET Core来简单实现一个后台实时推送数据给Echarts展示图表的功能

什么是 SignalR ASP.NET CoreASP.NET Core SignalR 是一种开放源代码库,可简化将实时 web 功能添加到应用程序的功能。 实时 web 功能使服务器端代码可以立即将内容推送到客户端。SignalR ASP.NET Core可以做什么:需要从服务器进行高频率更新的应用。 示例包括游戏、社交网络、投票、拍卖、地图和 GPS 应用。仪表板和监视应用。 示例包括公司仪表板、即时销售更新或旅行警报。协作应用。 协作应用的示例包括白板应用和团队会议软件。需要通知的应用。 社交网络、电子邮件、聊天、游戏、旅行警报和很多其他应用都需使用通知...

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

.NET 6 Preview 3 中 ASP.NET Core 的更新和改进

要在.NET 6 Preview 3 中开始使用 ASP.NET Core,请安装 .NET 6 SDK[1]。如果你在 Windows 上使用 Visual Studio,我们建议安装 Visual Studio 2019 16.10 的最新预览版。如果你在 macOS 上,我们建议安装 Visual Studio 2019 for Mac 8.10 的最新预览版。

收录时间: 2021-04-11
分类: ASP.NET Core
贡献者: Rector
16 热度

Customizing Authorization Responses in .NET 5.0

One feature frequently requested in the ASP.NET Core Authorization Framework was the ability to customize the HTTP response when authorization fails. Previously the only way to this was to either invoke the authorization service (IAuthorizationService) directly in your controllers (or via a filter), similar to the approach for resource-based authorization or implement your own authorization filter.

收录时间: 2021-04-11
分类: ASP.NET Core
贡献者: Rector
23 热度

.Net项目模板(Project Template)

你有没有这样的感觉,开启一个新项目时,总是做一堆体力活——项目的结构层次,常用日志库,OpenAPI库,ORM库,的引入,权限认证方式选择添加,配置文件重新归置存放等等。公共框架的部分总是不变的,如果有个常用项目的模板就好了,可以一键创建,接下来直接写业务就ok了。

收录时间: 2021-04-11
分类: .NET Core
贡献者: Rector
21 热度

使用 EPPlus 封装的 excel 表格导入功能

最近做系统的时候有很多 excel导入 的功能,以前我前后端都做的时候是在前端解析,然后再做个批量插入的接口。我觉着这样挺好的,后端部分可以做的很简单(很偷懒的)。但是因为各种各样的原因,最终还是需要做个专门的 excel导入 接口

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

在ASP.NET Core中使用ViewComponent

在之前的开发过程中,我们对于应用或者说使用一些小的组件,通常使用分布页(partial view),再往前在Web Form中我们会进行应用WEB Control,好吧提及一个关键性代码TagPrefix:TagName,通过这种的标记我们便可以在我们web form中进行引入我们的组件,当然自从.NET MVC之后呢,就已经没有了WebControl,而对于.NET Core后,又多了一个特性ViewComponent。对于ViewComponent看起来它类似于小的控制器,而对于我们小的组件或者小部分通用型功能,可通过ViewComponent进行实现,比如说留言栏、菜单等等。ViewComponent是由两部分组成,一部分是类(通常该类集成与ViewComponent),而另外一部分是视图(Razor和普通的View一样),当然ViewComponent同样也支持POCO,不继承ViewComponent,但类名以ViewComponent结尾。

收录时间: 2021-04-11
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助
17 热度

WPF 给 Grid 的辅助方法 添加行列名称绑定

有一些设计师喜欢改改改,界面的整体布局总是变更,如给 Grid 加一列删一行等,每次这样的更改的时候,都需要小心修改 Grid 里面的元素设置的行列序号。我认为在 Grid 简单的时候,当然大多数时候都应该让 Grid 不那么复杂,那么序号的可读性不错。如果 Grid 行列数量比较多,那么此时行列的序号的可读性将会降低,本文来告诉大家一个简单的方法,可以给 Grid 的行列添加名称绑定,让元素绑定到行列可以不使用序号,而是使用名称...

收录时间: 2021-04-11
分类: WPF
贡献者: Rector
16 热度

Announcing .NET Multi-platform App UI Preview 3

With .NET 6 Preview 3 we are shipping the latest progress for mobile and desktop development with .NET Multi-platform App UI. This release adds the Windows platform with WinUI 3, improves the base application and startup builder, adds native lifecycle events, and continues to add more UI controls and layout capabilities. We are also introducing new semantic properties for accessibility. As we explore each of these in a bit more detail, we invite you to dotnet new along with us and share your feedback.

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

Getting Started with the Uno Platform (Project Reunion/WinUI)

Two years ago I posted on Getting Started with Platform Uno which focused on starting with a UWP application and extending it cross platform using the Uno Platform. For those tracking developments in the Windows development space, you’ll be aware that the 0.5 version of Project Reunion has just been released. It seem fitting to …

收录时间: 2021-04-11
分类: .NET
贡献者: Rector
22 热度

Performance Improvements in NuGet

With each new release of Visual Studio comes a plethora of performance improvements when restoring NuGet packages, managing project dependencies, and browsing for the next great package to include in your solution.

收录时间: 2021-04-09
分类: 开发工具
贡献者: Rector
26 热度

Announcing .NET 6 Preview 3

Today, we are delighted to release .NET 6 Preview 3. This release is dedicated almost entirely to low-level performance features. These are the types of improvements that many folks don’t necessarily always fully appreciate, but they help a lot for many apps. Most of these improvements apply to the CLR type system directly, either making it function faster or better interplay with modern CPUs (think “hardware accelerate the type system”). In the last few years, there have been a few key performance trends with .NET, including: using structs more liberally in libraries, and moving runtime code to C#. Both of trends are visible (directly or indirectly) in these changes. It also demonstrates continued efforts on a focused set of performance strategies.

收录时间: 2021-04-09
分类: .NET 6
贡献者: Rector
28 热度

ASP.NET Core updates in .NET 6 Preview 3

.NET 6 Preview 3 is now available and includes many great new improvements to ASP.NET Core. To get started with ASP.NET Core in .NET 6 Preview 3, install the .NET 6 SDK. If you’re on Windows using Visual Studio, we recommend installing the latest preview of Visual Studio 2019 16.10. If you’re on macOS, we recommend installing the latest preview of Visual Studio 2019 for Mac 8.10.

收录时间: 2021-04-09
分类: ASP.NET Core
贡献者: Rector
30 热度

ASP.NET Blazor Server call Web Api

This blog article shows you one of the possible way for ASP.NET Blazor Server to call ASP.NET Web Api. First, both side is having the below object.

收录时间: 2021-04-08
分类: Blazor
贡献者: Rector
30 热度

Accessing Dapr secrets building block using Dapr .NET SDK - Laurent Kempé

In all previous posts, we were looking at the Dapr service invocation building block. We have seen how to expose and call HTTP and gRPC services using it. In this post, we will see how Dapr ease developers life when it comes to deal with secrets, thanks to the secrets management building block.

收录时间: 2021-04-08
分类: .NET
贡献者: Rector
26 热度

Implementing logging in .net core applications for logging, telemetry and your own sanity

It’s best I start this post off with this statement. I love having logging in my applications, but I hate having to clutter my code with logging statements! Logging is one of the most important things in most software developers daily work lives. It forms such a key of what we do on a day to day basis. If we get a bug report, or notification of a system failure or any notification that something has gone wrong, the first thing you’ll resort to is to go “read the logs”. In the hope that somewhere in those logs files will be a clue as to what gone on.

收录时间: 2021-04-07
分类: .NET Core
贡献者: Rector
AD 友情赞助
32 热度

.NET April 2021 Updates – 5.0.5

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

收录时间: 2021-04-07
分类: .NET
贡献者: Rector
34 热度

Creating Blazor Material Navigation Menu

In the previous article, we’ve integrated MudBlazor into our Blazor WebAssembly application and started working with some material components and theme modification. But our navigation menu doesn’t look great. Well, to be honest, we didn’t do anything with it. That said, in this article, we are going to create a new Blazor material navigation menu, and improve our visual experience a lot. For that, we are going to use different MudBlazor components like AppBar, Drawer, Icons, NavMenu, Links, etc.

收录时间: 2021-04-07
分类: Blazor
贡献者: Rector
48 热度

Referencing External Controllers in ASP.Net Core 3.x

I recently had a situation where I needed to include a utility controller and set of operations into every .Net Core Web API that used a common in-house framework. The idea being that by baking this utility controller in to the framework then every API built that references it can take advantage of this common set of API operations for free. The types of operations that this might include are logging, registration, security or health check type API operations that every Micro Service might need to implement out of the box (some perhaps only in certain environments). Anyway I knew this was possible in .Net Core through the use of...

收录时间: 2021-04-06
分类: ASP.NET Core
贡献者: Rector
38 热度

Event-Driven Architecture with Apache Kafka for .NET Developers Part 2 - Event Consumer

Let’s carry our discussion forward and implement a consumer of the events published by the Employee service to the leave-applications Kafka topic. We will extend the application that we developed earlier to add two new services to demonstrate how Kafka consumers work: Manager service and Result reader service.

收录时间: 2021-04-06
分类: .NET
贡献者: Rector
37 热度

Announcing Open Source C# standardization

The C# compilers have been open source since 2014, now in the dotnet/roslyn repository. The dotnet/csharplang split off to provide a dedicate public space for the innovation and evolution of the C# language. Now, dotnet/csharpstandard completes the group, providing a public space for the ongoing work to document the standard for the latest C# language versions.

收录时间: 2021-04-06
分类: C#开发
贡献者: Rector
AD 友情赞助