- Fragment model with validation, DTOs (immutable records), repository, service - Sidecar stdin/stdout JSON protocol for Tauri integration - DI wiring via ServiceCollectionExtensions - Scaffolded Journal.Api (not yet wired) Co-Authored-By: Warp <agent@warp.dev>
16 lines
466 B
C#
16 lines
466 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Journal.Core.Repositories;
|
|
using Journal.Core.Services;
|
|
|
|
namespace Journal.Core;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddFragmentServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IFragmentRepository, InMemoryFragmentRepository>();
|
|
services.AddTransient<IFragmentService, FragmentService>();
|
|
return services;
|
|
}
|
|
}
|