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

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

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

    Testing your Domain when Event Sourcing

    How do you test your domain when Event Sourcing? I find testing aggregates with Event Sourcing to be simpler than testing if you’re storing the current state. The inputs to your aggregate are events and the output of your aggregate are events.

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

    Understanding How Assemblies Load in C# .NET

    For better or for worse, a senior .NET developer needs to understand how the .NET runtime loads assemblies. We are constantly dealing with libraries and NuGet packages. These libraries depend on other popular libraries and there are a lot of shared dependencies. With a large enough web of dependencies, you’ll eventually get into conflicts or hard situations.

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

    .NET Core(.NET 7)如何使用Dapper连接PostgreSQL数据库并实现CRUD(新增,查询,修改,删除)的超详细入门示例教程

    概述PostgreSQL是一款开源的对象关系型数据库管理系统(ORDBMS)。它与常见的关系型数据库管理系统(RDBMS)如MySQL、Oracle和Microsoft SQL Server等不同,因为它具有更多高级功能,如对象存储、复杂查询和规范化等。PostgreSQL提供了.NET Core(...

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

    Creating Custom .NET Project Types with .NET CLI Project Templates

    I recently updated my Visual Studio template for creating Markdown Monster addins in order to support the newer .NET SDK style projects, which are easier to work with and provide a 'ready-to-run' Markdown Monster Addin project which was not quite possible with the older project type and a project template.

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

    C#/.NET/.NET Core应用程序编程开发中正则表达式如何实现字符串精确匹配?

    在C#/.NET/.NET Core应用程序编程开发中,使用正则表达式如何实现字符串精确匹配?比如:现在有一个待搜索词.NET Core,供搜索用的字符串集合为: var list = new Lis...

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

    ASP.NET Core 2.1 : 十一. 如何在后台运行一个任务

    在大部分程序中一般都会需要用到后台任务, 比如定时更新缓存或更新某些状态。一、应用场景以调用微信公众号的Api为例, 经常会用到access_token,官方文档这样描述:“是公众号的全局唯一接口调用凭据,有效期目前为2个小时,需定时刷新,重复获取将导致上次获取的access_token失效,建议公众号开发者使用中控服务器统一获取和刷新Access_token,其他业务逻辑服务器所使用的acc...

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

    Elasticsearch写入数据的过程是什么样的?以及是如何快速更新索引数据的?

    最近面试过程中遇到问Elasticsearch的问题不少,这次总结一下,然后顺便也了解一下Elasticsearch内部是一个什么样的结构,毕竟总不能就只了解个倒排索引吧。本文标题就是我遇到过的两个问题,所以此次基本上只是围绕着这两个问题来总结。

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

    Scaling Hangfire: Process More Jobs Concurrently

    As you start enqueuing more background jobs with Hangfire, you might need to increase the number of Consumers that can process jobs. Scaling Hangfire can be done in a couple of ways that I’ll explain in this post, along with one tip on what to be aware of when starting to scale out.

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

    负载均衡很难吗?看完这篇秒懂

    负载均衡很难吗?看完这篇秒懂互联网早期,业务流量比较小并且业务逻辑比较简单,单台服务器便可以满足基本的需求;但随着互联网的发展,业务流量越来越大并且业务逻辑也越来越复杂,单台机器的性能问题以及单点问题凸显了出来,因此需要多台机器来进行性能的水平扩展以及避免单点故障。但是要如何将不同的用户的流量分发到不同的服务器上面呢?早期的方法是使用DNS做负载,通过给客户端解析不同的I...

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

    使用一句 git 命令将仓库的改动推送到所有的远端

    git 支持一个本地仓库包含多个远端(remote),这对于开源社区来说是一个很重要的功能,可以实时获取到最新的开源代码且能推送到自己的仓库中提交 pull request。有时候多个远端都是自己的,典型的就是 GitHub Pages 服务了,推送总是希望这几个远端能够始终和本地仓库保持一致。本文将介绍一个命令推送到所有远端的方法。我的博客同时发布在 GitHub 仓库 http...

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

    .NET(C#)根据指定时间日期获取当月的第一天和最后一天

    C#中对日期的处理方法还是比较丰富的,但于本文标题所描述--根据指定时间获取当月的第一天和最后一天还是需要所额外处理的。当然,因为每个月的第一天总是从1号开始的,所以取月的第一天相对来说比较简单,即:DateTime date = new DateTime(2008, 5, 1, 8, 30, 52...

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

    .NET(C#)根据指定时间日期获取当月的第一天和最后一天

    C#中对日期的处理方法还是比较丰富的,但于本文标题所描述--根据指定时间获取当月的第一天和最后一天还是需要所额外处理的。当然,因为每个月的第一天总是从1号开始的,所以取月的第一天相对来说比较简单,即:DateTime date = new DateTime(2008, 5, 1, 8, 30, 52...

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

    ASP.NET Core 基于JWT的认证(二)

    ASP.NET Core 基于JWT的认证(二)上一节我们对 Jwt 的一些基础知识进行了一个简单的介绍,这一节我们将详细的讲解,本次我们将详细的介绍一下 Jwt在 .Net Core 上的实际运用。环境.Net Core 2.2Visual Studio 2017ASP.NET Core WebAPI2在上一篇文章中,我们详细的介绍了JWT的知识,这一次,我们将进行一次实战的训练,这一块将会...

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

    Razor Pages in ASP .NET Core 3.1

    This is the eighteenth of a new series of posts on ASP .NET Core 3.1 for 2020. In this series, we’ll cover 26 topics over a span of 26 weeks from January through June 2020, titled ASP .NET Core A-Z! To differentiate from the 2019 series, the 2020 series will mostly focus on a growing single codebase...

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

    IntelliJ IDEA 2020.2 EAP2 发布,支持 Linux 上的 Emoji

    IntelliJ IDEA 发布了 2020.2 的第二个抢鲜体验版本,用户同样可以免费使用 IntelliJ IDEA Ultimate 的 EAP 构建,有效期 30 天。 Java 使用数据流分析来分析异常堆栈跟踪 为了使用户更容易调...

  • 匿名 浏览问题(121.37.96.**)

    SQL Server数据库如何检测一张数据表中是否存在指定的列名/字段名呢?

    在SQL Server数据库,如何检测一张数据表中是否存在指定的列名/字段名呢?

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

    Building ASP.NET Core Hosted Services and .NET Core Worker Services

    I’m excited to announce the release of my third and latest course at Pluralsight! This new course covers building ASP.NET Core hosted services and .NET Core worker services.When I first pitched the course proposal to Pluralsight, I was quite surprised that it hadn’t been covered in great detail alre...

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

    C#/.NET应用程序编程开发中如何判断一个字符串已经被HttpUtility.UrlEncode编码?

    问题描述C#/.NET应用程序编程开发中,现有一个URL字符串var url = "https://www.baidu.com/";被HttpUtility.UrlEncode()方法编码过了,编码后的字符串如下:https%3a%2f%2fwww.baidu.com%2f假定被...

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

    vue-element-admin 4.2.0 发布,后台集成方案

    vue-element-admin 4.2.0 发布了,vue-element-admin 是一个后台集成解决方案,它基于 vue 和 element。它使用了最新的前端技术栈,内置了 i18 国际化解决方案,动态路由,权限验证,提炼了典型的业务模型,提供了丰富的功能组件,它可以帮助你快速搭建企业级中后台产品原型。

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

    Exploring .Net Core 3.0 components with Mark J. Price, a Microsoft specialist

    There has been continuous transformation since the last few years to bring .NET to platforms other than Windows. .NET Core 3.0 released in September 2019 with primary focus on adding Windows specific features.