最近20条动态(数据无延迟、实时推送)
-
匿名
于浏览文章(85.208.96.***)
我不知道读者是否(或者曾经)是一名站长。至少笔者以前是,目前是,以后也会是一名站长。至于为什么我要做为一名站长这个问题,我自己也说不明白。只是内心有一种强烈的愿望—把自己对这个世界,这个社会,这个人类的认知和自己对行业所了解和掌握的东西分享出来,供大家学习,参考。有些人要说了,站长可以赚钱啊。在这里...
-
匿名
于浏览资讯(216.73.217.**)
-
匿名
于浏览文章(51.77.216.**)
C#&.NET程序中使用Flurl的用法与问题汇总(非常详细)
什么是Flurl?Flurl是一个基于.NET平台的开源库,它简化了使用HTTP API进行请求和响应的操作。Flurl的API设计旨在使其易于使用,流畅和直观,同时提供高度灵活性和可扩展性。Flurl的核心部分是一个扩展方法集合,可以直接应用于.NET HttpClient对象。通过这些扩展方法,...
-
匿名
于浏览文章(43.165.135.***)
[.NET/C#].NET/C#应用程序开发中如何实现十进制数字和十六进制间的相互转换呢?
问题描述在.NET/C#应用程序开发中,数字是必须面对的。在计算机的世界里,数字的计数单位有多种,二进制,十进制,十六进制等。那么如何实现十进制数字与十六进制之间的相互转换呢?比如进行如下的十进制到十六进制的数字转换:2934 (十进制) ==>> B76 (十六进制)方案一在.NET/...
-
匿名
于浏览资讯(87.250.224.***)
【原创】强撸基于 .NET 的 Redis Cluster 集群访问组件
Hello 大家好,我是TANZAME,我们又见面了。今天我们来聊聊怎么手撸一个 Redis Cluster 集群客户端,纯手工有干货,您细品。随着业务增长,线上环境的QPS暴增,自然而然将当前的单机 Redis 切换到群集模式。燃鹅,我们悲剧地发现,ServiceStack.Redis这个官方推荐的 .NET 客户端并没有支持集群模式。一通度娘翻墙无果后,决定自己强撸一个基于ServiceStack.Redis的Redis集群访问组件...
-
匿名
于浏览资讯(216.73.217.**)
Announcing .NET Core 3.1 Preview 1
Today, we’re announcing .NET Core 3.1 Preview 1. .NET Core 3.1 will be a small release focused on key improvements in Blazor and Windows desktop, the two big additions in .NET Core 3.0. It will be a long term support (LTS) release with an expected final ship date of December 2019.
-
匿名
于浏览资讯(216.73.217.**)
Secure an ASP.NET Core Web Api using Cookies
There’s this frequent notion that you need to use tokens to secure a web api and you can’t use cookies. That’s not the case. You can do authentication and authorization in a Web Api using cookies the same way you would for a normal web application, and doing so has the added advantage that cookies are easier to setup than for example JWT tokens. There are just a few things you need to be aware.
-
匿名
于浏览资讯(220.181.108.***)
Upload file from swagger UI in ASP.NET Core Web API
In this post, I will show you how to customize swagger UI to upload a file in ASP.Net Core Web API project. First, let’s add an action which will be responsible to upload a file in our API. If you wan...
-
匿名
于浏览文章(27.34.73.*)
[Bootstrap]Bootstrap中如何给文本框添加图标?
问题描述如题,在Bootstrap中,如何为一个文本框添加图标呢?比如有实现一个用户名的文本框,如下图:方案一参考官方的示例代码(无需写其他的CSS样式):<form class="form-inline" role="form"> <di...
-
匿名
于浏览文章(85.208.96.***)
.NET 6 Minimal API程序中使用EF Core访问SQLite数据库实例教程
概述如今.NET 6发布已经有一段时间了,在生产环境运行的基于.NET 6的项目也趋于稳定,没有大的Bug。在.NET 6发布之前,我已向大家分享了关于《创建API服务最小只要4行代码!!!尝新体验ASP.NET Core 6预览版本中发布的最小Web API(minimal APIS)新特性》。在...
-
匿名
于浏览文章(34.204.150.***)
摘要:.NET[C#]中如何反序列化一个动态的JSON对象?方式一、System.Web.Helpersdynamic data = Json.Decode(json);当然,也可以重写 System.Web.Extension 命名空间中的 JavaScriptConverter 类中的实现:us...
-
匿名
于浏览问题(42.229.79.**)
-
匿名
于浏览资讯(3.221.244.**)
I'm excited about two things in our industry right now: containers (specifically Kubernetes) and WebAssembly (specifically Blazor and Uno). CSLA .NET version 4.11 got a lot of new and exciting features to support container and Kubernetes scenarios, and there are some more coming in CSLA version 5 as well.
-
匿名
于浏览资讯(216.73.217.**)
OpenTelemetry .NET Beta Released!
Today, we are happy to announce that the OpenTelemetry .NET SDK has reached beta. This means that you can now begin integrating the OpenTelemetry .NET SDK into your applications and libraries to capture and export metrics and traces.
-
匿名
于浏览资讯(216.73.217.**)
A Closer Look at C# 8 Interfaces
There are a lot of changes to interfaces in C# 8 -- not just default implementation. Last time, I had a bit of a rant about those changes. Now it's time to settle down and take a closer look at what those changes are and better understand them.
-
匿名
于浏览文章(51.77.216.**)
.NET[C#]中类型检测是用:typeof,GetType,还是is?
.NET[C#]中类型检测是用:typeof,GetType,还是is?很多人的书写方式如下:Type t = typeof(obj1);if (t == typeof(int)){ //处理逻辑代码}你也可能写成这样的:if (obj1.GetType() == typeof(int)){ ...
-
匿名
于浏览文章(14.242.184.***)
[Dapper].NET/C#中使用Dapper如何动态创建查询参数?
[Dapper].NET/C#中使用Dapper如何动态创建查询参数?问题描述比如,当前有一个数据字典,可能包含的键值对有:{Name:’Jack’},这个数据字典是否可以作为Dapper的查询参数呢?以下伪代码在Dapper中又如何实现呢?IDictionary<string, string...
-
匿名
于浏览文章(51.77.216.**)
.NET[C#]中类型检测是用:typeof,GetType,还是is?
.NET[C#]中类型检测是用:typeof,GetType,还是is?很多人的书写方式如下:Type t = typeof(obj1);if (t == typeof(int)){ //处理逻辑代码}你也可能写成这样的:if (obj1.GetType() == typeof(int)){ ...
-
匿名
于浏览资讯(216.73.217.**)
Cross Platform Managed Memory Dump Debugging
I am really happy to announce that with the release of Visual Studio 16.8 Preview 3 you now have the ability to open and analyze managed dumps collected on Linux and use the best in class debugging tools available in Visual Studio.
-
匿名
于浏览资讯(14.243.203.***)
启动任务的例子在之前博客中,我收到的最常见的反馈是关于我在描述问题时使用的例子。在我最初的博客中,我列举了3种可能场景,在这3种场景中,你希望在ASP.NET Core应用启动时运行一些异步任务。检查强类型配置是否合法使用数据库或者API填充缓存运行数据库迁移对于前两种场景,没有任何问题,但是对于数据库迁移,一些博友提出了一些疑问。其实在两篇博文中我一直都反复说明,数据库迁移作为启动任务不是一...