Overview
Syllabus
Vertical slice Architecture
Traditional n-tier UI Layer
Organizing by layer
Areas of change
Move code to single place
Move service methods to classes
Modeling requests
Request/Response with Mediatr
Registering Mediatr
Commands and Queries
One model in, one model out
Complete encapsulation
Modeling Queries
Paging/Sorting/Filtering
Modeling Responses
Complex Response
Command/Query Duality
Modeling Commands
Simple Commands public class Edit
Model-Bound Types
Task-Based UIS
Modeling Command Responses
void Response
Success/Fail
Creation
Complete Response
SQL Projections
Encapsulated Logic
Duplicate Logic
Command Handlers
Procedural Beginnings
DI with no abstractions
Code Smells
Behavioral Smells
Push Behavior Down
Encapsulated Domain
validation Scopes
Request validation
Domain validation
Representations
Controllers as routes
Razor Pages
Pipeline Behavior (Decorator)
Stackable Decorators
Think: Action Filters
Transactions
Unit of work
Concurrency and Retries
Logging
Registration
Setting Up Data
Sending Requests
Testing queries through result
Setup through the front door
Setup data directly when needed
Test commands with roundtrips
Taught by
NDC Conferences