public static class TaskExtensions { public static Task Start(this Task task, out Stopwatch stopwatch) { stopwatch = new Stopwatch(); stopwatch.Start(); return task; } public static Task<T> Start<T>(this Task<[......]继续阅读
public static class TaskExtensions { public static Task Start(this Task task, out Stopwatch stopwatch) { stopwatch = new Stopwatch(); stopwatch.Start(); return task; } public static Task<T> Start<T>(this Task<[......]继续阅读
编写一个拓展: public static class TaskExtensions { public static Task Start(this Task task, out Stopwatch stopwatch) { stopwatch = new Stopwatch(); stopwatch.Start(); return task; } public static Task<T> Start<T>(this[......]继续阅读
Introduction to ABP Series (6): Database Configuration Copyright © Author: whuanle, reproduction of articles from WeChat public account requires consent from "NCC Open Source Community". Introduction to ABP Series (6): Database Configuration Creating…
浅入 ABP 系列(6):数据库配置 版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 浅入 ABP 系列(6):数据库配置 创建标准的 EFCore 数据库上下文 连接字符串 定义隔离的上下文 多数据库支持和配置 Freesql 配置服务 本系列的第五篇:https://www.cnblogs.com/whuanle/p/13061059.html 因为这一部分属于 ASP.NET Core 的基础部分,ABP 没有封装,因此没啥要说的。 这一篇我们将来学习如何在 ABP 中添加数据库配…
版权护体©作者:whuanle,微信公众号转载文章需要 《NCC开源社区》同意。 Event Bus About Event Bus Why this is needed Event Bus Creation Process Subscribe to Events Events Publish Events Global Exception Handling Added to Event Bus Functionality Create Event Subscribe to Events Publish Event…
版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 事件总线 关于事件总线 为什么需要这个东西 事件总线创建过程 订阅事件 事件 发布事件 全局异常加入事件总线功能 创建事件 订阅事件 发布事件 测试 记录事件 这一篇将来学习 ABP 中的事件总线,然后结合在我们的基架项目中,逐渐构建一个完整的系统。 源码地址:https://github.com/whuanle/AbpBaseStruct 事件总线 关于事件总线 ABP 中,为了方便进程间通讯,给开发者提供了一个叫 事件总线 的功能,事件…
Automatic Dependency Injection Adding Logging Dependency Adding Logging Functionality Dependency Injection Copyright © Author: whuanle. Reprint of this article in WeChat public account requires consent from "NCC Open Source Community". In the previou…
自动依赖注入 添加日志依赖 添加日志功能 依赖注入 版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 前面两篇我们搭建了一个基础的、简单的,具有统一响应格式的 Web 程序,这一篇内容不多,继续增加一些需要的组件功能。 前面两篇已经搭建好基架,所以我们可以直接使用基架来逐渐增加功能,本系列后面的篇章会针对多方面的内容来逐渐讲解。 源码地址:https://github.com/whuanle/AbpBaseStruct 基架项目位置在 src/2/AbpBase 里面。 自动依赖注入 在 …
版权护体©作者:whuanle,微信公众号转载文章需要 《NCC开源社区》同意。 Define a Feature Attribute Global Uniform Message Format HTTP Status Codes Common Request Results Response Model Global Exception Interceptor Let’s Clarify ApiResponseModel is an Abstract Class Cross-Domain Requests Con…
版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 定义一个特性标记 全局统一消息格式 Http 状态码 常用的请求结果 响应模型 全局异常拦截器 先说明一下 ApiResponseModel 是抽象类 跨域请求 配置 API 服务 统一 API 模型验证消息 创建前 创建方式 创建后 上一篇,我们已经搭建起了一个基本的程序结构,下面我们来添加一些必要的服务,例如异常拦截器、跨域等。 本教程的代码比较多,关联性比较强,需要整体写好后,才能正常使用,所以可以先按照过程做一次,再回头看解析。 本…
Building Project Basic Structure AbpBase.Domain.Shared Creation Process AbpBase.Domain Creation Process AbpBase.Application.Contracts Creation Process AbpBase.AbpBase.Database Creation Process AbpBase.AbpBase.Application Creation Process AbpBase.HttpApi Creati…
搭建项目基础结构 AbpBase.Domain.Shared 创建过程 AbpBase.Domain 创建过程 AbpBase.Application.Contracts 创建过程 AbpBase.AbpBase.Database 创建过程 AbpBase.AbpBase.Application 创建过程 AbpBase.HttpApi 创建过程 AbpBase.Web 创建过程 关于ABP和代码解疑 模块 [DependsOn] 配置服务和管道 模块如何关联 版权护体©作者:痴者工良,微信公众号转载文章需要 《N…
Calculus (Engineering Version) (Latest Edition) Table of Contents Chapter 1: Functions Chapter 2: Limits and Continuity Chapter 3: Derivatives and Differentials Chapter 4: Applications of Derivatives Chapter 5: Indefinite Integral Method Chapter 6: Definite In…
高等数学(工本)(最新版) 目录 第一章 函数 第二章 极限与连续 第三章 导数与微分 第四章 导数的应用 第五章 不定积分法 第六章 定积分及其应用 第七章 向量代数与空间解析几何 第八章 多元函数微分学 第九章 多元函数积分学 第十章 常微分方程 第十一章 无穷级数 学习过程 模板: 基本要求 考核知识点 参考书籍、资料 制定计划 计划结果 第一章 函数 第二章 极限与连续 第三章 导数与微分 第四章 导数的应用 第五章 不定积分法 第六章 定积分及其应用 第七章 向量代数与空间解析几何 第八章 多元函数微分学…
Policy-Based Authorization in ASP.NET Core Policy Defining a Controller Setting Permissions Defining Policies Storing User Information Marking Access Permissions Authentication: Token Credentials Issuing Login Credentials Custom Authorization IAuthorizationSer…
ASP.NET Core 中的策略授权 策略 定义一个 Controller 设定权限 定义策略 存储用户信息 标记访问权限 认证:Token 凭据 颁发登录凭据 自定义授权 IAuthorizationService ABP 授权 创建 ABP 应用 定义权限 Github 仓库源码地址 https://github.com/whuanles/2020-07-12 ASP.NET Core 中的策略授权 首先我们来创建一个 WebAPI 应用。 然后引入 Microsoft.AspNetCore.Authenti…
C++ has an inline function, which is modified by the inline keyword. The compiler optimizes it by inserting this function's code at the call site. Excerpt from C Language Chinese Network When a function is called, memory space must first be allocated on the st…
JAVA Programming Language Design Chapters Basics of JAVA Language Operations and Statements Basics of Object-Oriented Programming Arrays and Strings Graphical User Interface Design 1 Graphical User Interface Design 2 Graphics, Images, and Multimedia Multithrea…
JAVA 程序语言设计章节 JAVA 语言基础 运算和语句 面向对象编程基础 数组和字符串 图形界面设计1 图形界面设计2 图形,图像与多媒体 多线程 输入输出流 网络与数据库编程基础 试卷单题分值 选择 1分 填空 2分 简答题 3分 程序填空题 2分 程序分析 4分 程序设计 6分 对多年考题各类题型分值统计 2008 10 月 章节 选择 填空 简答 程序填空 程序分析 程序设计 总计 JAVA 语言基础 . . 3 运算和语句 .. . . .[......] 继续阅读