Introduction to validation Inputs of an application should be validated first. This input can be sent by user or another application. In a web application, validation is usually implemented twice: in client and in the server. Client-side validation i…
Introduction "Cross-Site Request Forgery (CSRF) is a type of attack that occurs when a malicious web site, email, blog, instant message, or program causes a user’s web browser to perform an unwanted action on a trusted site for which the user is curr…
Introduction Wikipedia: "An audit trail (also called audit log) is a security-relevant chronological record, set of records, and/or destination and source of records that provide documentary evidence of the sequence of activities that have affected a…
Server Side(服务端) ASP.NET Boilerplate uses Castle Windsor's logging facility. It can work with different logging libraries: Log4Net, NLog, Serilog... etc. Castle provides a common interface for all logger libraries. So, you're independent from specifi…
Introduction It's a common to map a similar object to another object. It's also tedious and repeating since generally both objects (classes) may have similar/same properties mapped to each other. Think on a typical application servicemethod below: 将相…
Introduction From it's web site: "....with a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability." 从它的网站:“使API,你得到的交互式文档,客户端SDK的生成和发现.” ASP.NET Core Install Nuget Package Install Swashbuckle.AspNetCo…
Introduction Layering of an application's codebase is a widely accepted technique to help reduce complexity and improve code reusability. To achieve layered architecture, ASP.NET Boilerplate follows the principles of Domain Driven Design. 分层应用程序的代码是一…
Data Transfer Objects are used to transfer data between Application Layer and Presentation Layer. 数据传输对象用于在应用层和表示层之间传输数据. Presentation Layer calls to an Application Service method with a Data Transfer Object (DTO), then application service uses domai…
What Is Multi Tenancy? "Software Multitenancy refers to a software architecture in which a single instance of a software runs on a server and serves multiple tenants. A tenant is a group of users who share a common access with specific privileges to…
Application Services are used to expose domain logic to the presentation layer. An Application Service is called from presentation layer with a DTO (Data Transfer Object) as parameter, uses domain objects to perform some specific business logic and r…