File tree Expand file tree Collapse file tree
src/aspire/logging-metalama/TodoList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ public partial class TodoService( ApplicationDbContext db )
88 public async Task < IEnumerable < Todo > > GetTodosAsync ( CancellationToken cancellationToken = default )
99 => await db . Todos . ToArrayAsync ( cancellationToken ) ;
1010
11- // <snippet> LogUsingAttribute
11+ // [ <snippet LogUsingAttribute>]
1212 [ Log ]
1313 public async Task < Todo ? > GetTodoAsync ( int id , CancellationToken cancellationToken = default )
1414 => await db . Todos . FindAsync ( id ) ;
15- // <endsnippet> LogUsingAttribute
15+ // [ <endsnippet LogUsingAttribute>]
1616
1717 public async Task < Todo > AddTodoAsync ( Todo todo , CancellationToken cancellationToken = default )
1818 {
Original file line number Diff line number Diff line change 11using Metalama . Framework . Fabrics ;
22using Metalama . Framework . Code ;
33
4- // <snippet> Fabric
4+ // [ <snippet Fabric>]
55internal class LogAllPublicMethodsFabric : TransitiveProjectFabric
66{
77 public override void AmendProject ( IProjectAmender amender ) =>
@@ -12,4 +12,4 @@ public override void AmendProject( IProjectAmender amender ) =>
1212 . Where ( method => method . Accessibility == Accessibility . Public && method . Name != "ToString" )
1313 . AddAspectIfEligible < LogAttribute > ( ) ;
1414}
15- // <endsnippet> Fabric
15+ // [ <endsnippet Fabric>]
You can’t perform that action at this time.
0 commit comments