13 热度

Build a .NET App Quickly with Docker

In this post, you’ll build a .Net Framework application with Visual Studio on Windows 10. You’ll then containerize your application so it can be reliably deployed and run on any instance of Docker for Windows.Since containers share the host operating system, you can only run containers compatible wi...

收录时间: 2019-11-06
分类: ASP.NET
贡献者: Rector
50 热度

Advanced error handling techniques

This post describes some (more) advanced error handling techniques. I’ll probably do a series because this topic is large and there’s quite a few things that need to be cleared out, but we’ll see....

收录时间: 2019-09-24
分类: ASP.NET
贡献者: Rector
113 热度

HttpRepl: A command-line tool for interacting with RESTful HTTP services

The ASP.NET team has built a command-line tool called HttpRepl. It lets you browse and invoke HTTP services in a similar way to working with files and folders. You give it a starting point (a base URL) and then you can execute commands like “dir” and “cd” to navigate your way around the API...

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

Dealing with Application Base URLs and Razor link generation while hosting ASP.NET web apps behind Reverse Proxies

I'm quietly moving my Websitefrom a physical machine to a number of Cloud Services hosted in Azure. This is an attempt to not just modernize the system - no reason to change things just to change them - but to take advantage of a number of benefits that a straight web host sometimes doesn't have. I ...

收录时间: 2019-07-12
分类: ASP.NET
贡献者: Rector
167 热度

Creating Custom Constraints For Razor Pages Routes

Razor Page already includes a wide range of constraints that can be used to help disambiguate routes. It is also possible for you to create your own custom constraint and then register that with the routing system.

收录时间: 2019-04-02
分类: ASP.NET
贡献者: Rector
174 热度

Using NodaTime with Dapper

This is a part of a series of blog posts on data access with Dapper. To see the full list of posts, visit the Dapper Series Index Page. After my recent misadventures attempting to use Noda Time with Entity Framework Core, I decided to see what it would take to use Dapper in a the same scenario.

收录时间: 2019-03-29
分类: ASP.NET
贡献者: Rector
AD 友情赞助
240 热度

Build a REST API with ASP.NET Web API

Do you need to build a REST API with ASP.NET Web API? If you’re creating a new API, you should probably create it with .NET Core. But it’s not always possible to use the latest and greatest technologies. If you’re working in an existing ASP.NET 4.x app, or the organization you work for hasn’t approved the use of .NET Core yet, you may need to build an API in .NET Framework 4.x. That is what you will learn here. You’ll also learn how to access your API from another application (for machine-to-machine communication) and prevent unauthorized access to your API. As you go, I’ll show you how to implement standard design patterns so it will be easy for other developers to understand and work with your API.

收录时间: 2019-03-14
分类: ASP.NET
贡献者: Rector
219 热度

Running ASP.NET Web API Solution in Docker

This article describes how to containerize an ASP.NET WebApi solution with Visual Studio, how to pass data via environment variables and also how to run the images in docker without Visual Studio. The tricky part when running a web solution with a web API in docker containers is to map the URLs and ports so that the code running inside the docker container can be accessed from outside. This is a question of docker configuration and minor code changes.

收录时间: 2019-03-08
分类: ASP.NET
贡献者: Rector
247 热度

A Practical Example Of Asynchronous Programming in C# and ASP.NET

I'll make no secret of it: I LOVE asynchronous programming in ASP.NET! I love it so much that I submitted a talk for CodeMash 2019 called "Hold Up, Wait a Minute, Let Me Put Some Async In It," which I actually got to present despite that ridiculous title. This post is a direct result of that talk, in which I took an existing synchronous ASP.NET web application and slowly refactored it to use asynchronous programming. I figure that more than just CodeMash's attendees might find this useful.

收录时间: 2019-02-19
分类: ASP.NET
贡献者: Rector
339 热度

【ABP框架系列学习】N层架构(3)

目录0.引言1.DDD分层2.ABP应用构架模型客户端应用程序(Client Applications)表现层(Presentation Layer)分布式服务层(Distributed Service Layer)应用层(Application Layer)领域层基础设施层3.使用ABP项目模版快速生成应用程序0.引言应用程序的分层是一种广泛接受的技术...

收录时间: 2018-11-23
分类: ASP.NET
贡献者: Rector
357 热度

【ABP框架系列学习】介绍篇(1)

0.引言该系列博文主要在【官方文档】及【tkbSimplest】ABP框架理论研究系列博文的基础上进行总结的,或许大家会质问,别人都已经翻译过了,这不是多此一举吗?原因如下:1.【tkbSimplest】的相关博文由于撰写得比较早的,在参照官方文档学习的过程中,发现部分知识未能及时同步(当前V4.0.2版本),如【EntityHistory】、【Multi-Lingual Engitie...

收录时间: 2018-11-22
分类: ASP.NET
贡献者: Rector
626 热度

WebAPI接口设计:SwaggerUI文档 / 统一响应格式 / 统一异常处理 / 统一权限验证

WebAPI接口设计:SwaggerUI文档 / 统一响应格式 / 统一异常处理 / 统一权限验证为什么还要写这类文章?因为我看过网上很多讲解的都不够全面,而本文结合实际工作讲解了swaggerui文档,统一响应格式,异常处理,权限验证等常用模块,并提供一套完善的案例源代码,在实际工作中可直接参考使用。一、先看看最终效果这是最后生成的swagerui文档,大家可以直接访问这个地址体验:...

收录时间: 2018-11-19
分类: ASP.NET
贡献者: Rector
430 热度

ASP.NET SignalR 2.4.0 发布,bug 修复版本

ASP.NET SignalR 2.4.0 发布了,这是用于 System.Web 和基于 OWIN 应用的 SignalR 版本,2.4.0 是包含了一些小的 bug 修复和更新,在之前报导过的预览版更新中可以了解相关信息。值得一提的是,此版本添加了对 StackExchange.Redis 包新版 2.0 的支持。如果在 SignalR 应用中使用 StackExchange 的 Redi...

收录时间: 2018-11-15
分类: ASP.NET
贡献者: Rector
450 热度

ASP.NET SignalR 2.4.0 Preview 2 发布

ASP.NET SignalR 2.4.0 的第二个预览版已发布。其中包括对 Azure SignalR Service 的支持,以及一些错误修复和次要功能。官方表示,即便你对采用 Azure SignalR Service 不感兴趣,也建议尝试升级到预览版,因为这是完全兼容的升级,不会产生任何兼容性问题。请点此查看已修复问题的列表请点此查看未来 2.4.0 版本中计划修复的问题此...

收录时间: 2018-10-23
分类: ASP.NET
贡献者: Rector
428 热度

The future of ASP.NET SignalR

In ASP.NET Core 2.1, we brought SignalR into the ASP.NET Core family. Many of our users have asked what this means for the previous version of SignalR: ASP.NET SignalR.As a reminder, ASP.NET SignalR...

收录时间: 2018-09-18
分类: ASP.NET
贡献者: Rector
AD 友情赞助
636 热度

Web后台快速开发框架

本框架旨在为.NET开发人员提供一个Web后台快速开发框架,采用本框架,能够极大的提高项目开发效率。 整个框架包括三个版本: .NET新版,采用.NET452,GitHub地址为:https://github.com/Coldairarrow/Coldairarrow.Fx.Net.Easyui.GitHub .NET40版,采用.NET40,GitHub地址为:https://github.com/Coldairarrow/Coldairarrow.Fx.Net40.Easyui.GitHub .NET Core版,采用.NET Core2.1,正在移植中,敬请期待。。。 以上三个版本中,.NET新版,主要支持最新的技术方案,作为主要生产版本;.NET40版是为了兼容Windows 2003服务器而降级的版本,功能正常。.NET Core 版本是未来的发展方向,能够跨平台,并且涉及Linux、Docker、Nginx、微服务等概念,我会尽快完成移植。

收录时间: 2018-09-11
分类: ASP.NET
贡献者: Rector
493 热度

IdentityServer4客户端如何获取自定义声明,了解一下?

前言 久违了各位,之前录制过IdentityServer4的基础视频(https://space.bilibili.com/319652230/#/),有兴趣了解的童鞋可以看一下,只不过未发表成博客。我们使用IdentityServer4结和ASP.NET Identity来进行用户的认证和授权管理,在实际项目中我们都会继承ASP.NET Core Identity中IdentityUser类即用...

收录时间: 2018-08-06
分类: ASP.NET
贡献者: Rector
457 热度

ASP.NET资源大全-知识分享

API框架NancyFx:轻量、用于构建 HTTP 基础服务的非正式(low-ceremony)框架,基于.Net 及 Mono 平台。官网ASP.NET WebAPI:快捷创建 HTTP 服务的框架,可以广泛用于多种不同的客户端,包括浏览器和移动设备。官网ServiceStack:架构缜密、速度飞快、令人愉悦的 web 服务。官网Nelibur:Nelibur 是一个使用纯 WCF 构建的基于消...

收录时间: 2018-07-31
分类: ASP.NET
贡献者: Rector
602 热度

[Abp 源码分析]七、仓储与 Entity Framework Core

0.简介Abp 框架在其内部实现了仓储模式,并且支持 EF Core 与 Dapper 来进行数据库连接与管理,你可以很方便地通过注入通用仓储来操作你的数据,而不需要你自己来为每一个实体定义单独的仓储的实现,通用仓储包含了常用的 CRUD 接口和一些常用方法。例如:public class TestAppService : ITransientDependency{private read...

收录时间: 2018-07-24
分类: ASP.NET
贡献者: Rector
484 热度

5.ASP.NET全栈开发之在Vue中使用前端校验(二)

5.ASP.NET全栈开发之在Vue中使用前端校验(二)在全栈开发系列第三篇的时候有讲到使用Vue进行前端验证。在那一篇博文里,详细讲了如何搭建 vuefluentvalidator.js 的过程,并最终把它从需要(实体和实体验证器)到 直接使用,很显然,它很小巧的胜任了工作。(首先声明,这个vuefluentvalidator.js是我上周末也就是7月15号才开始构思和编写的,而我最开始的目的是...

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