MyApp.Application — filtered API export¶
Public API surface rendered deterministically from build-time XML doc comments (ADR-0022). Test projects and infrastructure namespaces are excluded;
<spec>tags trace members to requirements and are verified against the traceability metadata contract (ADR-0019). Regenerate withscripts/generate-dotnet-doc-export.py— do not edit.
CreateTodoRequest¶
MyApp.Application.CreateTodoRequest
Data for creating a new todo item.
- Title — The title of the new item.
Traces to: moscow:M-002
constructor(string)¶
M:MyApp.Application.CreateTodoRequest.#ctor(System.String)
Data for creating a new todo item.
- Title — The title of the new item.
- Traces to — moscow:M-002
Title¶
P:MyApp.Application.CreateTodoRequest.Title
The title of the new item.
TodoDto¶
MyApp.Application.TodoDto
Data-transfer shape of a todo item exposed by the application layer.
- Id — The stable identifier of the item.
- Title — The human-readable title of the item.
- IsCompleted — A value indicating whether the item is done.
Traces to: moscow:M-002
constructor(Guid, string, bool)¶
M:MyApp.Application.TodoDto.#ctor(System.Guid,System.String,System.Boolean)
Data-transfer shape of a todo item exposed by the application layer.
- Id — The stable identifier of the item.
- Title — The human-readable title of the item.
- IsCompleted — A value indicating whether the item is done.
- Traces to — moscow:M-002
Id¶
P:MyApp.Application.TodoDto.Id
The stable identifier of the item.
IsCompleted¶
P:MyApp.Application.TodoDto.IsCompleted
A value indicating whether the item is done.
Title¶
P:MyApp.Application.TodoDto.Title
The human-readable title of the item.
TodoService¶
MyApp.Application.TodoService
Use-case service for todo items: the only surface the API layer talks to.
Traces to: moscow:M-001, moscow:S-002
constructor(ITodoRepository)¶
M:MyApp.Application.TodoService.#ctor(MyApp.Domain.ITodoRepository)
Initializes a new instance of the TodoService class.
- repository — The backing todo repository.
Create(CreateTodoRequest)¶
M:MyApp.Application.TodoService.Create(MyApp.Application.CreateTodoRequest)
Creates a new todo item from the given request.
- request — The creation request.
- Returns — The created item as a
TodoDto. - Throws
ArgumentException— Thrown when the request title is empty.
Delete(Guid)¶
M:MyApp.Application.TodoService.Delete(System.Guid)
Deletes a todo item.
- id — The identifier of the item.
- Returns —
truewhen the item was deleted; otherwisefalse.
Get(Guid)¶
M:MyApp.Application.TodoService.Get(System.Guid)
Returns a single todo item.
- id — The identifier to look up.
- Returns — The matching DTO, or
nullwhen not found.
GetAll¶
M:MyApp.Application.TodoService.GetAll
Returns all todo items, newest last.
- Returns — Every stored item as a
TodoDto.
SetCompletion(Guid, bool)¶
M:MyApp.Application.TodoService.SetCompletion(System.Guid,System.Boolean)
Sets the completion state of a stored todo item.
- id — The identifier of the item.
- isCompleted — The new completion state.
- Returns — The updated DTO, or
nullwhen the item does not exist.