NetCore

.NetCore Ocelot

参考:https://blog.51cto.com/u_13746169/5876532 Nuget包: OcelotOcelot.Provider.ConsulOcelot.Provider.PollyOcelot.Cache.CacheManager 程序包管理器控制台CLIInstall-Pa ......
NetCore Ocelot

盘点10个.NetCore实用的开源框架项目

连续分享.Net开源项目快3个月了,今天我们一起梳理下10个,比较受到大家欢迎的.NetCore开源框架项目。 更多开源项目,可以查看我创建的,.Net开源项目榜单! 一个专注收集.Net开源项目的榜单​github.com/bianchenglequ/netcodetop 1、FytSoaCms ......
框架 NetCore 项目

[MDP.NetCore] 使用AzureAD+服務主體,快速建立兩個服務之間的Service身分認證

MDP.AspNetCore.Authentication.AzureAD.Services for Service Principal MDP.AspNetCore.Authentication.AzureAD.Services擴充ASP.NET Core既有的身分驗證,加入AzureAD提供的S ......
身分 AzureAD NetCore Service MDP

netcore net 递归查询示例

/// <summary> /// 查询项目列表 /// </summary> /// <param name="userModel"></param> /// <returns></returns> public async Task<List<GetProjectListOutput>> Get ......
示例 netcore net

开发现代化的.NetCore控制台程序:(4)使用GithubAction自动构建以及发布nuget包

前言 上一篇文章介绍了将 nuget 包发布到 Github Packages 上。 本文更进一步,使用 GitHub Action 搭建 CI/CD 流水线,进行 nuget 的自动构建和发布。😎 GitHub Action 用起来和之前的 Gitlab CI/CD 是差不多的,可以使用 Git ......
控制台 GithubAction NetCore 程序 nuget

开发现代化的.NetCore控制台程序:(3)将nuget包发布到GitHubPackages

前言 上一篇文章已经把项目模板的nuget包发布到了 nuget 的官方源了,其实还可以发布到其他源,比如 GitHub ,本文记录一下发布到 GitHub Packages 的过程。 注意:本文建立在本系列第二篇文章的基础上,为了更好理解操作过程,请先熟悉本项目的代码结构 创建 GitHub to ......

开发现代化的.NetCore控制台程序:(2)创建一个C#项目模板

前言 上一篇文章(开发一个现代化的.NetCore控制台程序,包含依赖注入/配置/日志等要素)介绍了开发现代化的.NetCore控制台程序的细节,但这还不够,我又创建了一个脚手架模板,并命名为 FluentConsole.Templates ,可以方便的创建「现代化控制台应用」。 源码地址: htt ......
控制台 模板 NetCore 程序 项目

简化asp.netcore框架

简化asp.netcore框架 大A老师的(200行代码了解框架本质)[https://www.cnblogs.com/artech/p/inside-asp-net-coreframework.html]写的非常好,不过还是有些许的复杂,比如第9条 HttpContext和Server之间的适配, ......
框架 netcore asp

搭建一个.NetCore控制台程序框架,包含依赖注入/配置/日志等要素

前言# 最近需要开发小工具的场景有点多,上次我用 go 语言开发了一个 hive 导出工具,体验还不错,只是 go 语言的语法实在是喜欢不起来,这次继续试试用 C# 来开发小工具。 这次小工具的功能很简单,数据库数据迁移,不过这不重要,主要是记录一下更适合 .Net Core 宝宝体质的控制台小工具 ......
控制台 要素 框架 NetCore 程序

开发一个现代化的.NetCore控制台程序,包含依赖注入/配置/日志等要素

前言 最近需要开发小工具的场景有点多,上次我用 go 语言开发了一个 hive 导出工具,体验还不错,只是 go 语言的语法实在是喜欢不起来,这次继续试试用 C# 来开发小工具。 这次小工具的功能很简单,数据库数据迁移,不过这不重要,主要是记录一下更适合 .Net Core 宝宝体质的控制台小工具开 ......
控制台 要素 NetCore 程序 日志

NETCore,离线部署Linux ,离线部署 libgdiplus

背景 错误信息:Unable to load shared library ‘libgdiplus‘ or one of its dependencies 解析:libgdiplus是Linux支持Netcore的图形库,比如System.Drawing要用,在线安装都容易,离线就处理起来恶心了 以 ......
libgdiplus NETCore Linux

NetCore 技术参考

开发平台 1、数据模型 2、数据视图 3、界面模型 4、系统图标接口开发 1、接口设置 2、联动设置 3、调用日志代码生成 1、BLL业务逻辑层 2、DAL数据访问层 3、Model实体层 4、生成报表模板 5、EF接口 6、EF业务逻辑层 7、EF数据访问层 8、EFModel模型数据配置 1、表 ......
NetCore 技术

NU1102 找不到版本为(=5.0.0-dev)的包 Microsoft.NETCore.App.Host.win-x64

异常: 原因:.Net Core 3.0 之后的版本,默认情况下项目在生成时,会自动生成与运行时版本相同的可执行文件(exe<Windows下>),它是需要对应版本的一个dotnet-apphost-pack包支持。 解决方法: 1.下载安装dotnet-apphost-pack包 2.禁用生成可执 ......
Microsoft NETCore 版本 win-x 1102

[MDP.NetCore] 開發一個從GitHub持續佈署到Azure Container Apps的Web站台

開發一個從GitHub持續佈署到Azure Container Apps的Web站台 程式碼簽入GitHub之後,啟動GitHub Action流程,編譯並部署程式到Azure Container Apps,是開發系統時常見的功能需求。本篇範例協助開發人員使用GitHub與Azure,逐步完成必要的 ......
站台 Container NetCore GitHub Azure

NetCore之基于Azure Service Bus的消息服务

什么是Azure服务总线? Azure服务总线是完全托管的企业消息代理,包括消息队列和发布订阅(命名空间). Service Bus通常被用来解耦应用程序和服务,控制跨服务和应用程序间安全路由和传输数据。 本篇从实战出发介绍如何通过Service Bus发送接收及消费消息。 1、创建API.Azur ......
NetCore Service 消息 Azure Bus

rabbitmq+mqtt+docker-compose搭建MQTT服务器和.netcore 客户端实现 订阅+发布

转自:https://blog.csdn.net/oopxiajun2011/article/details/130658329 1 搭建MQTT服务器 1.1 Dockerfile 内容 1 FROM rabbitmq:3.11.6-management 2 COPY install_rabbit ......

最简单的Docker部署.netcore webApi 一看就会

学会如何使用Docker部署.NET Core WebAPI 用vscode新建一个文件,文件名存为:dockerfile 不要后缀名 本地发布一下项目,然后把dockerfile放到发布后的目录里或则选择属性始终复制 创建完之后,发布一下,然后到publish文件夹下面新建个dockerfile, ......
netcore Docker webApi

NETCORE DockerFile

1.DockerFile配置 rm -rf Dockerfile cat>>Dockerfile<<EOF FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base # RUN apk add --no-cache icu-libs EXPOSE 80 EXP ......
DockerFile NETCORE

.netCore调用WebService

![img](https://img2023.cnblogs.com/blog/18992/202310/18992-20231012143323708-1124209202.png) ![img](https://img2023.cnblogs.com/blog/18992/202310/1899... ......
WebService netCore

.netframework迁移到.netcore方法

一 .netframework程序迁移到.netcore5.0对于.netframwork程序想要升级为.netcore5.0的方法,微软官方也给出了方法见 https://docs.microsoft.com/en-us/dotnet/desktop/winforms/migration/?vie ......
netframework netcore 方法

NetCore Ocelot 之 Cache

Ocelot supports some very rudimentary caching at the moment provider by the CacheManager project. This s an amazing project that is solving a lot of c ......
NetCore Ocelot Cache

NetCore Ocelot 之 Authorization

Ocelot supports claims based authorization which is run post authentication. This means if ou have a route you want to authorize you can add the follo ......
Authorization NetCore Ocelot

NetCore Ocelot 之 Qos

Qos quality of service Ocelot supports one Qos capability at the current time.You can set on a per Route basis if you want to use a circuit breaker wh ......
NetCore Ocelot Qos

NetCore Ocelot 之 Load Balancer

Ocelot can load balance across available downstream services for each Route. This means you can scale your downstream services and Ocelot can use them ......
Balancer NetCore Ocelot Load

NetCore Ocelot 之 Authentication

In order to authenticate Routes and subsequently use any of Ocelot's claims based features such as authorization or modifying the request with values ......
Authentication NetCore Ocelot

NetCore Ocelot 之 Rate Limiting

Ocelot supports rate limiting of upstream requests so that your downstream services do not become overloaded. OK so to get rate limiting working for a ......
Limiting NetCore Ocelot Rate

NetCore学习笔记:单元测试和集成测试

前言# 我在使用 AspNetCore 的这段时间内,看了很多开源项目和博客,发现各种 .Net 体系的新技术很多人都有关注和使用,但却很少有人关注测试。 测试是软件生命周期中的一个非常重要的阶段,对于保证软件的可靠性具有极其重要的意义。在应用程序的开发过程中,为了确保它的功能与预期一致,必须对其进 ......
单元 NetCore 笔记

开源.NetCore通用工具库Xmtool使用连载 - 扩展动态对象篇

【Github源码】 《上一篇》 介绍了Xmtool工具库中的图形验证码类库,今天我们继续为大家介绍其中的扩展动态对象类库。 扩展动态对象是整个工具库中最重要的一个设计。在软件开发过程中,我们经常需要定义各种各样的数据对象;例如:用于参数传递的数据实体类、用于接口返回结果的Json对象等等。 // ......
对象 NetCore 工具 动态 Xmtool

NetCore3.1 在IIS中如何部署_

下载安装包https://dotnet.microsoft.com/download/dotnet-core 安装hosting文件->选择根目录->选择“模块”->可见安装完后iis中会多出一个AspNetCoreModuleV2项。并安装runtime、sdk两个文件。 选择左侧“应用程序池”中 ......
NetCore3 NetCore IIS

用okhttp上传图片(java,后端netcore)

用okhttp上传图片(java,后端netcore) 2023年09月23日 https://github.com/square/okhttp https://github.com/google/gson 流程: 1. 点选择按键,弹出相册,选择一张图片,图片显示到ImageView中 2.再点上 ......
netcore okhttp 图片 java