v1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using OrpaonVision.ConfigApp.Annotation.Options;
|
||||
using OrpaonVision.ConfigApp.Annotation.Services;
|
||||
using OrpaonVision.Core.Annotation;
|
||||
|
||||
namespace OrpaonVision.ConfigApp.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// ConfigApp 服务注册扩展。
|
||||
/// </summary>
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 注册 ConfigApp 应用服务。
|
||||
/// </summary>
|
||||
/// <param name="services">服务集合。</param>
|
||||
/// <returns>服务集合。</returns>
|
||||
public static IServiceCollection AddConfigAppServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton(new CvatOptions());
|
||||
services.AddSingleton<IAnnotationSyncAppService, CvatAnnotationSyncAppService>();
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user