Files
deepdrft/DeepDrftCms/CmsStartup.cs
T

18 lines
688 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace DeepDrftCms;
public static class CmsStartup
{
public static IServiceCollection AddCmsServices(this IServiceCollection services)
{
// CMS-specific services registered here as implementation waves land.
//
// Note: ITrackService (and its dependencies: TrackRepository, DeepDrftContext) is registered
// by DeepDrftPublic.Startup.ConfigureDomainServices, not here. The CMS RCL runs inside the
// DeepDrftPublic host, which wires those up before this method is called. A standalone CMS
// host would need to register ITrackService separately.
return services;
}
}