4 热度

从零开始实现ASP.NET Core MVC的插件式开发(五) - 插件的删除和升级

在上一篇中,我为大家讲解了如何实现插件的安装,在文章的最后,留下了两个待解决的问题:.NET Core 2.2中不能实现运行时删除插件;.NET Core 2.2中不能实现运行时升级插件。其实这2个问题归根结底其实都是一个问题,就是插件程序集被占用,不能在运行时更换程序集。在本篇中,我将分享一下我是如何一步一步解决这个问题的,其中也绕了不少弯路,查阅过资料,在.NET Core官方提过Bug,几次差点想放弃了,不过最终是找到一个可行的方案。

收录时间: 2019-08-23
分类: ASP.NET Core
贡献者: Rector
6 热度

Optional Parameters in Razor Pages Routing

Razor Pages routing is based on attribute routing and is very powerful. Parameters provide a way of passing arbitrary data to a page via the URL. Optional parameters allow URLs to matched to routes even if no parameter value is passed. Things can get a bit complicated if you want to permit multiple optional parameters.

收录时间: 2019-08-23
分类: ASP.NET Core
贡献者: Rector
24 热度

My First Look at ASP.NET Core 3.0

I'm finally getting around to looking at updating my examples and courses to 3.0. This post is based on .NET Core Preview 8 so this might change in the future.

收录时间: 2019-08-22
分类: ASP.NET Core
贡献者: Rector
12 热度

Trying to Run RSocket Server with RSocket.NET and ASP.NET Core Primitives for Non-HTTP Servers

I've heard about RSocket for the first time about two years ago, from this short (20 minutes) talk. If you want a quick overview, you can go and watch the recording right now, I can wait.

收录时间: 2019-08-22
分类: ASP.NET Core
贡献者: Rector
20 热度

Role Based Security in an ASP.NET Core Application

ASP.NET Core provides necessary APIs to implement secure access to an application.In this tutorial, we will see how to implement Role-Base security in an ASP.NET Core 2.2 application.

收录时间: 2019-08-20
分类: ASP.NET Core
贡献者: Rector
25 热度

ASP.NET Core on K8S深入学习(5)Rolling Update

本篇已加入《.NET Core on K8S学习实践系列文章索引》,可以点击查看更多容器化技术相关系列文章。一、什么是Rolling Update?为了服务升级过程中提供可持续的不中断的服务,K8S提供了Rolling Update机制,它可以使得服务近乎无缝地平滑升级,即在不停止对外服务的前提下完成应用的更新。滚动更新采用渐进的方式逐步替换旧版本Pod,如果更新不如预期,那么也可以通过回滚操作恢复到更新前的状态。滚动更新的最大好处在于零停机,整个更新过程始终有副本在运行,从而保证了业务的连续性。为了实践滚动更新,我们先做一些准备工作:(1)准备一个ASP.NET Core WebAPI项目,...

收录时间: 2019-08-19
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助
26 热度

Getting Started with gRPC Client Factory

In this post, I want to show a quick example of how to get started with the gRPC Client Factory. I’m going to focus on adding this to an ASP.NET Core 3.0 web project, which will act as a client of an external gRPC service. This post assumes a little knowledge about gRPC. You can read my earlier blog post (slightly outdated now) which covers some extra ground.

收录时间: 2019-08-15
分类: ASP.NET Core
贡献者: Rector
27 热度

Developing with Docker and ASP.NET Core

If you've viewed my new "Designing RESTful Web APIs" course on Pluralsight, you've already encountered my small API that I use as an exammple. While the course is platform agnostic, i'll admit that I built it with ASP.NET Core (2.2).

收录时间: 2019-08-15
分类: ASP.NET Core
贡献者: Rector
31 热度

Asp.Net Core Windows Service Scheduler Daily Weekly Monthly

Windows services are a good way for reducing some manual jobs that we have to do in our system. In this article, we are going to write a windows service using Asp.Net core, the jobs of this windows service is given below.

收录时间: 2019-08-14
分类: ASP.NET Core
贡献者: Rector
38 热度

Asp.Net Core WebAPI+PostgreSQL部署在Docker中

PostgreSQL是一个功能强大的开源数据库系统。它支持了大多数的SQL:2008标准的数据类型,包括整型、数值值、布尔型、字节型、字符型、日期型、时间间隔型和时间型,它也支持存储二进制的大对像,包括图片、声音和视频。PostgreSQL对很多高级开发语言有原生的编程接口,如C/C++、Java、.Net、Perl、Python、Ruby、Tcl 和ODBC以及其他语言等,也包含各种文档。我用PostgreSQL结合.Net Core WebAPI构建并部署在Docker中做了一个Demo构建...

收录时间: 2019-08-13
分类: ASP.NET Core
贡献者: Rector
33 热度

New in ASP.NET Core 3.0 - Generic Hosting Environment

In ASP.NET Core 3.0 the hosting environment changes to get more generic. Hosting is not longer bound to Kestrel and not longer bound to ASP.NET Core. This means you are able to create a host, that doesn't start the Kestrel web server and doesn't need to use the ASP.NET Core Framework.

收录时间: 2019-08-13
分类: ASP.NET Core
贡献者: Rector
33 热度

Top 10 Static Code Quality Analysers for ASP.NET Core

Top 10 Static Code Quality Analysers for ASP.NET Core.

收录时间: 2019-08-09
分类: ASP.NET Core
贡献者: Rector
31 热度

Displaying ASP.NET Core health checks with Grafana and InfluxDB

After finishing my writing about ASP.NET Core health checks I started finding a way how to visual health check results so I can display these on the wall mounted TV or big screen. This blog post introduces how to visualize ASP.NET Core health checks with Grafana and InfluxDB.

收录时间: 2019-08-09
分类: ASP.NET Core
贡献者: Rector
42 热度

ASP.NET Core on K8S深入学习(3)Deployment

上一篇《部署过程解析与安装Dashboard》中我们了解K8S的部署过程,这一篇我们来了解一下K8S为我们提供的几种应用运行方式:Deployment、DaemonSet与Job,它们是Kubernetes最重要的核心功能提供者。考虑到篇幅和更新速度,我将其分为两篇文章,本篇会主要介绍Deployment,主要参考自CloudMan《每天5分钟玩转Kubernetes》,也推荐大家购买阅读。

收录时间: 2019-08-07
分类: ASP.NET Core
贡献者: Rector
39 热度

Using Razor Components In A Razor Page

In my last article, I looked at some of the new things that ASP.NET Core 3.0 will introduce to Razor Pages developers. One of the features that I touched on was Razor Components. In this article, I take a more detailed look at what they are and how they can be used.

收录时间: 2019-08-06
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助
47 热度

ASP.NET Core Web Api之JWT刷新Token(三)

如题,本节我们进入JWT最后一节内容,JWT本质上就是从身份认证服务器获取访问令牌,继而对于用户后续可访问受保护资源,但是关键问题是:访问令牌的生命周期到底设置成多久呢?见过一些使用JWT的童鞋会将JWT过期时间设置成很长,有的几个小时,有的一天,有的甚至一个月,这么做当然存在问题,如果被恶意获得访问令牌,那么可在整个生命周期中使用访问令牌,也就是说存在冒充用户身份,此时身份认证服务器当然也就是始终信任该冒牌访问令牌,若要使得冒牌访问令牌无效,唯一的方案则是修改密钥,但是如果我们这么做了,则将使得已授予的访问令牌都将无效,...

收录时间: 2019-08-02
分类: ASP.NET Core
贡献者: Rector
41 热度

Authentication and authorization in gRPC for ASP.NET Core

gRPC can be used with ASP.NET Core authentication to associate a user with each call. The following is an example of Startup.Configure which uses gRPC and ASP.NET Core authentication...

收录时间: 2019-08-01
分类: ASP.NET Core
贡献者: Rector
52 热度

ASP.NET Core on K8S深入学习(1)K8S基础知识与集群搭建

在上一个小系列文章《ASP.NET Core on K8S学习初探》中,通过在Windows上通过Docker for Windows搭建了一个单节点的K8S环境,并初步尝试将ASP.NET Core WebAPI项目部署到了K8S,把玩了一下快速部署和实例伸缩。这个系列开始,会继续学习K8S以及在Linux上搭建集群来深入把玩。本篇会回顾一下K8S的基本概念以及架构组成,然后会通过Kubeadm快速地搭建一个K8S集群供后续学习把玩之用。

收录时间: 2019-07-31
分类: ASP.NET Core
贡献者: Rector
46 热度

ASP.NET Core 3.0 Exception Handling

Dealing with errors is one of the essential elements of programming applications. The way to do so has changed over the years and versions of ASP.NET. In this article, Dino Esposito discusses how handle exceptions with ASP.NET Core 3.0.

收录时间: 2019-07-30
分类: ASP.NET Core
贡献者: Rector
51 热度

或许是你应该了解的一些 ASP.NET Core Web API 使用小技巧

或许是你应该了解的一些 ASP.NET Core Web API 使用小技巧 一、前言在目前的软件开发的潮流中,不管是前后端分离还是服务化改造,后端更多的是通过构建 API 接口服务从而为 web、app、desktop 等各种客户端提供业务支持,如何构建一个符合规范、容易理解的 API 接口是我们后端开发人员需要考虑的。在本篇文章中,我将列举一些我在使用 ASP.NET Core Web API 构建接口服务时使用到的一些小技巧,因才疏学浅,可能会存在不对的地方,欢迎指出。代码仓储:https://github.com/Lanesra712/ingos-server 二、Step by St...

收录时间: 2019-07-29
分类: ASP.NET Core
贡献者: Rector
AD 友情赞助