网站实时动态码友网--专注C#&.NET/.NET Core的中文技术网站

最近20条动态(数据无延迟、实时推送)

  • 匿名 浏览文章(216.244.66.***)

    1分钟极速搭建基于BaGet的轻量级私有Nuget程序包服务器

    概述大家好,我是专注.NET开发的码友网创建者Rector。在上一篇《NuGet是什么?为什么.NET项目中会有NuGet?如何使用NuGet程序包?》文章中,我们了解了:NuGet是什么?为什么.NET项目中会有NuGet?如何使用NuGet程序包?特别的,文中学习了如何安装基于微软官方托管(nu...

  • 匿名 浏览资讯(5.39.109.***)

    Async 函数的使用及简单实现

    解决回调地狱的异步操作,Async 函数是终极办法,但了解生成器和 Promise 有助于理解 Async 函数原理。由于内容较多,分三部分进行,这是第三部分,介绍 Async 函数相关。第一部分介绍 Generator,第二部分介绍 Promise。在这部分中,我们会先介绍 Async 函数的基本使用,然后会结合前两部分介绍的生成器和 Promise 实现一个 async 函数。1)As...

  • 匿名 浏览文章(216.73.216.***)

    ASP.NET Core Logging Solution

    .NET Core LoggingThis package makes it a one-liner - loggerFactory.AddFile() - to configure top-quality file logging for ASP.NET Core apps.Text or JSO...

  • 匿名 浏览资讯(110.249.201.***)

    Kubernetes 最佳实践:零宕机升级集群

    Source: Kubernetes 最佳实践:零宕机升级集群from 谷歌开发者-中文博客 发布人:开发技术推广工程师 Sandeep Dinesh编者注:本期将推出由 Google 开发技术推广工程师 Sandeep Dinesh主讲的关于如何充分利用 Kubernetes 环境的视频和博客系列的最后一部分(共七部分)。众所周知,为优化安全性和性能,最好让应用时刻保持最新状...

  • 匿名 浏览资讯(183.7.146.**)

    Entity Framework Core 2.1,添加种子数据

    EFCore 2.1出来有一段时间了,里面的新功能还没怎么用,今天研究下如何使用EF Core 2.1添加种子数据。这部分的官方文档地址是:https://docs.microsoft.com/en-us/ef/core/modeling/data-seeding我们在开发时总是需要添加一些种子数据的,所以这个功能还是比较有用的。 准备工作我建立了一个ASP.NET Core项...

  • 匿名 浏览资讯(125.94.174.***)

    v-selectpage v2.1.2,带分页功能的列表/表格视图选择器

    基于 Vue2 的 v-selectpage v2.1.2 版本发布,更新内容:使用 render 方式完全重构插件;样式简洁化,减少线条的使用;优化部分操作和数据处理性能;修复部分情况下数据请求重复触发问题;修复部分情况下,输入查询无效的问题;增加 rtl 内容右对齐模式下,查询输入框的输入方向修改为从右向左展示模式...

  • 匿名 浏览资讯(183.7.148.***)

    "Implementing" a non-public interface in .NET Core with DispatchProxy

    Reflection is a tremendously powerful concept in .NET, which every C# developer, sooner or later, ends up working with. It is very useful for a lot of perfectly honest scenarios such as for example assembly scanning, type discovery or all kinds of application composability features.

  • 匿名 浏览资讯(113.95.145.***)

    elasticsearch如何设计集群

    在写本文时就在想,如果让你负责一个elasticsearch集群,从零开始,你会从哪些方面考虑?我们也知道es基本都是开箱即用,而且也很好用,配置参数也用默认的就好,只是这么简单的用不难,但是要想更好的用好es集群,那要怎么去做设计呢?我们知道想要用es集群,首先要安装es集群,当然es安装需要硬件,也就是服务器的支撑,如果安装好了es集群,也不能空跑吧,所以要有数据,所以要写入数据,当然写入数据是为了后期有所用,比如查询数据,做分析等。用是可以了,如果数据量增大,业务更加复杂,还要考虑如何更好的用,怎么用可以提高效率?一个集群也不可能只有一个人用呀,如果很多人用,就会存在不安全,需要考虑权限吧,想想也算健全了,但是万一哪天机器出问题了,数据丢失了怎么办?

  • 匿名 浏览资讯(125.94.174.***)

    Custom deployment layout for Blazor WebAssembly apps

    Some environments block the download and execution of DLLs from the network to prevent the potential spread of malware, which can also block downloading Blazor WebAssembly apps. To enable Blazor WebAssembly in these environments, we introduced in .NET 6 new extensibility points that allows developers to customize the published files and packaging of Blazor WebAssembly apps. These customizations can then be packaged as a reusable NuGet package.

  • 匿名 浏览资讯(183.7.148.***)

    依赖注入[2]: 基于IoC的设计模式

    依赖注入[2]: 基于IoC的设计模式正如我们在《控制反转》提到过的,很多人将IoC理解为一种“面向对象的设计模式”,实际上IoC自身不仅与面向对象没有必然的联系,它也算不上是一种设计模式。一般来讲,设计模式提供了一种解决某种具体问题的方案,但是IoC既没有一个针对性的问题领域,其自身没有提供一种可实施的解决方案,所以我更加倾向于将IoC视为一种设计原则。实际上很多我们熟悉的设计模式背后采用了Io...

  • 匿名 浏览资讯(92.222.104.***)

    完美解决asp.net core 3.1 两个AuthenticationScheme(cookie,jwt)共存在一个项目中

    在我的项目中有mvc controller(view 和 razor Page)同时也有webapi,那么就需要网站同时支持2种认证方式,web页面的需要传统的cookie认证,webapi则需要使用jwt认证方式,两种默认情况下不能共存,一旦开启了jwt认证,cookie的登录界面都无法使用,原因是jwt是验证http head "Authorization" 这属性.所以连login页面都无法打开.

  • 匿名 浏览资讯(35.153.207.***)

    最新聚合技术头条/资讯列表

  • 匿名 浏览资讯(66.249.66.*)

    Introducing .NET for Apache® Spark™ Preview

    Today at Spark + AI summit we are excited to announce .NET for Apache Spark. Spark is a popular open source distributed processing engine for analytics over large data sets. Spark can be used for processing batches of data, real-time streams, machine learning, and ad-hoc query.

  • 匿名 浏览资讯(92.222.108.**)

    XAML Back to Basics #8: Simple Bar Graph

    The next post in the series originally written by Beatriz Stollnitz. Original post available on Github. How to make a data bound bar graph A very simple bar graph can be created by combining the styling and templating features with a data bound ItemsControl. An ItemsControl is simply a control that displays a list of items.

  • 匿名 浏览资讯(95.108.213.***)

    What’s new in .NET Productivity with Visual Studio 2022

    With the release of Visual Studio 2022 the Roslyn team continues to enhance your .NET developer productivity with the latest tooling improvements. In this post I’ll cover the following .NET productivity enhancements:Source Link navigation;Stack Trace Explorer;Naming styles in the EditorConfig UI;Sync namespaces from Solution Explorer;IntelliSense completion for await;New code fixes and refactorings

  • 匿名 浏览资讯(95.108.213.***)

    Introducing IHostLifetime and untangling the Generic Host startup interactions: Exploring ASP.NET Core 3.0 - Part 5

    In this post I describe how ASP.NET Core 3.0 has been re-platformed on top of the generic host, and some of the benefits that brings. I show a new abstraction introduced in 3.0, IHostLifetime and describe its role for managing the lifecycle of applications, especially worker services.

  • 匿名 浏览资讯(92.222.104.***)

    Visual Studio 2019 for Mac 8.4 Preview 4 发布

    微软已经发布了 Visual Studio 2019 for Mac version 8.4 Preview 4。该版本带来了对最新稳定版 .NET Core 的支持,对 ASP.NET Core 项目的脚手架支持以及对整体产品可访问性的其他改进。用户...

  • 匿名 浏览资讯(112.85.124.***)

    How to Design Messages for gRPC Services in .NET Core

    Defining your gRPC service using the Protocol Buffers specification is pretty easy. There are just a couple of things to be aware of as you convert from the specification to .NET Core and then manage your service's evolution.

  • 匿名 浏览资讯(54.37.118.**)

    Ant Design 4.1.0 发布,企业级 UI 设计语言

    Ant Design 4.1.0 发布了。Ant Design 是阿里开源的一套企业级的 UI 设计语言和 React 实现,使用 TypeScript 构建,提供完整的类型定义文件,自带提炼自企业级中后台产品的交互语言和视觉风...

  • 匿名 浏览资讯(54.37.118.**)

    谈谈.NET Core中基于Generic Host来实现后台任务

    目录前言什么是Generic Host后台任务示例控制台形式消费MQ消息的后台任务Web形式部署IHostedService和BackgroundService的区别IHostBuilder的扩展写法总结前言很多时候,后台任务对我们来说是一个利器,帮我们在后面处理了成千上万的事情。在.NET Framework时代,我们可能比较多的就是一个项目,会有一到多个对应的Windows服务,这些W...