Skip to content

Add Ports and Adapters architecture pattern #484

@JerrettDavis

Description

@JerrettDavis

Pattern

Expose first-class hexagonal architecture support for driving ports, driven ports, adapters, and composition roots.

Family

ApplicationArchitecture

Acceptance criteria

  • Add a fluent/runtime API in src/PatternKit.Core using existing PatternKit naming and builder conventions.
  • Add a source-generated path with attributes in PatternKit.Generators.Abstractions and generator support in PatternKit.Generators.
  • Cover runtime, generator, diagnostics, and examples with TinyBDD scenarios and assertion trees.
  • Add a real-world, importable example that works with IServiceCollection and Generic Host/ASP.NET Core style composition.
  • Update docs, user guide material, README/docs pattern tables, and the production-readiness catalog.
  • Add BenchmarkDotNet coverage comparing fluent and source-generated routes, including overhead and allocation notes.
  • Keep solution-wide tests and GitHub checks green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions