This commit is contained in:
2026-05-25 14:02:56 +02:00
parent 29bd42e52e
commit 758b152a0c
1798 changed files with 1991205 additions and 481068 deletions
@@ -1 +1 @@
{"path":"NexusReader.Application/DependencyInjection.cs","purpose":"Provides application-level DI registrations (Mapster mapping config and MediatR handler registration) and exposes the application assembly for composition/root usage.","classification":{"role":"service-registration","layer":"application","confidence":0.9,"evidence":["Contains an AddApplication(IServiceCollection) extension that registers services","Exposes Assembly property for registering handlers from this assembly"]},"className":"DependencyInjection","methods":[{"name":"AddApplication","line":8,"endLine":14,"signature":"(services: IServiceCollection) -> IServiceCollection","purpose":"Extension method that registers application mapping configuration and MediatR handlers, returning the IServiceCollection for chaining.","calls":[{"targetFile":"NexusReader.Application/Mappings.cs","targetMethod":"AddMapsterConfiguration","callLine":10,"paramSummary":"this IServiceCollection (extension call to register Mapster mappings)"}],"actions":[{"id":"service-registration_10","kind":"mapping","label":"Register mapping configuration","line":10,"detail":"Calls AddMapsterConfiguration() to add Mapster mapping setup","visibility":"detail-only","confidence":0.7},{"id":"service-registration_11","kind":"mapping","label":"Register MediatR handlers","line":11,"detail":"Calls AddMediatR(...) to register MediatR handlers from this assembly (external library call)","visibility":"detail-only","confidence":0.7},{"id":"return_13","kind":"return","label":"Return IServiceCollection","line":13,"detail":"Returns the same IServiceCollection for fluent chaining","visibility":"detail-only","confidence":0.7},{"id":"addapplication_return_13_0","kind":"return","label":"Returns result","line":13,"detail":"return services;","visibility":"detail-only","confidence":0.7}]},{"name":"Assembly","line":16,"endLine":16,"signature":"-> System.Reflection.Assembly","purpose":"Exposes the current assembly (NexusReader.Application) for use when registering handlers or scanning types.","calls":[],"actions":[{"id":"expose-value_16","kind":"mapping","label":"Provide assembly reference","line":16,"detail":"Getter returns typeof(DependencyInjection).Assembly","visibility":"detail-only","confidence":0.7}]}],"types":[],"serviceRegistrations":[{"line":10,"serviceType":"Mapster configuration / mapping profiles","implementationType":"configured via AddMapsterConfiguration extension","lifetime":"unknown","factorySummary":"Calls AddMapsterConfiguration to register Mapster mapping setup for the Application project"},{"line":11,"serviceType":"MediatR handlers (from this assembly)","implementationType":"handlers discovered in this assembly","lifetime":"unknown","factorySummary":"Calls AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly)) to register MediatR handlers"}],"startupActions":[],"dependencies":["NexusReader.Application/Mappings.cs","MediatR (external package)"],"patterns":["Dependency Injection extension","Service registration"],"domainConcepts":[],"keyDetails":"Intended to be called from the composition root (e.g., Web project startup) to wire up application mapping and MediatR handler discovery; exposes Assembly for scanning.","orchestrationMethods":[],"typedContracts":[],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[]}
{"path":"NexusReader.Application/DependencyInjection.cs","purpose":"Provides Application-layer dependency registrations (mappings, MediatR) and exposes the assembly for registration discovery.","classification":{"role":"service-registration","layer":"application","confidence":0.9,"evidence":["Contains an AddApplication(IServiceCollection) extension that registers mapping and MediatR services","Exposes Assembly property used for scanning/registration (typeof(DependencyInjection).Assembly)"]},"className":"DependencyInjection","methods":[{"name":"AddApplication","line":8,"endLine":14,"signature":"(services: IServiceCollection) -> IServiceCollection","purpose":"Extension method that registers application-layer services: Mapster mapping configuration and MediatR handlers, then returns the IServiceCollection.","calls":[{"targetFile":"NexusReader.Application/Mappings","targetMethod":"AddMapsterConfiguration","callLine":10,"paramSummary":"this IServiceCollection (extension call to add mapping configuration)"}],"actions":[{"id":"service-registration_10","kind":"mapping","label":"Adds Mapster configuration to DI","line":10,"detail":"calls AddMapsterConfiguration() to register mapping config/services","visibility":"detail-only","confidence":0.7},{"id":"service-registration_11","kind":"mapping","label":"Registers MediatR and handlers from this assembly","line":11,"detail":"calls services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly)) to register MediatR services","visibility":"detail-only","confidence":0.7},{"id":"return_13","kind":"return","label":"Returns IServiceCollection","line":13,"detail":"returns services to allow chaining","visibility":"detail-only","confidence":0.7},{"id":"addapplication_return_13_0","kind":"return","label":"Returns result","line":13,"detail":"return services;","visibility":"detail-only","confidence":0.7}]},{"name":"Assembly (property getter)","line":16,"endLine":16,"signature":"() -> System.Reflection.Assembly","purpose":"Exposes the assembly containing the DependencyInjection type for registration/discovery.","calls":[],"actions":[{"id":"return_16","kind":"return","label":"Returns assembly for scanning","line":16,"detail":"returns typeof(DependencyInjection).Assembly","visibility":"detail-only","confidence":0.7}]}],"types":[],"serviceRegistrations":[],"startupActions":[{"name":"AddApplication","line":8,"kind":"service-registration","targetCalls":[{"targetFile":"NexusReader.Application/Mappings","targetMethod":"AddMapsterConfiguration","callLine":10,"paramSummary":"IServiceCollection - mapping configuration registration"},{"targetFile":"unknown","targetMethod":"AddMediatR","callLine":11,"paramSummary":"Registers MediatR services and handlers from this assembly via RegisterServicesFromAssembly(...)"}]}],"dependencies":["NexusReader.Application/Mappings"],"patterns":["Dependency Injection","Service Registration","Composition Root (partial)"],"domainConcepts":["Mapping","MediatR handler discovery"],"keyDetails":"This static helper centralizes Application-layer DI registration: it wires mapping configuration and asks MediatR to register handlers from the assembly exposed by the Assembly property.","orchestrationMethods":[],"typedContracts":[],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[{"kind":"startup","label":"AddApplication","line":8,"summary":"service-registration startup action","confidence":0.78,"evidencePaths":["NexusReader.Application/DependencyInjection.cs","NexusReader.Application/Mappings","unknown"]}],"cacheMetadata":{"schemaVersion":2,"analysisVersion":"2026-05-23.cache-v1","contentChecksum":"1aff1a22608fe81d4630d0acae8f6ec801b8016f2bc6cfae482a7e7b37aa0cc3","sourceByteSize":558,"analyzedAt":"2026-05-23T16:19:41.479Z","technology":"dotnet"}}