2025-11-02 10:21:28 -08:00

41 lines
1.5 KiB
C#

using Microsoft.Extensions.DependencyInjection;
using WebAPI.Logics.Core;
using WebAPI.Logics.Interface;
using WebAPI.Logics;
using WebAPI.Services.AutoReplyCommands;
using WebAPI.Services.Interfaces;
using WebAPI.Services;
using Church.Net.Entity;
namespace Church.Net.WebAPI.Bindings
{
public class LogicBinding : IBinding
{
public void Binding(IServiceCollection services)
{
services.AddScoped<LineAutoBotService>();
services.AddScoped<IAutoReplyCommand, ArChurchInfo>();
services.AddScoped<IAutoReplyCommand, ArArkCellGroupInfo>();
services.AddScoped<IAutoReplyCommand, ArArkCellGroupDinner>();
services.AddScoped<IAutoReplyCommand, ArArkCellGroupPrayer>();
services.AddScoped<IAutoReplyCommand, ArHappinessGroupTask>();
services.AddScoped<IAutoReplyCommand, ArHappinessBEST>();
//services.AddScoped<IScheduledTask, MorningPrayer>();
services.AddScoped<VideoDownloadLogic>();
services.AddScoped<LogicService>();
services.AddScoped<PastoralDomainLogic>();
services.AddScoped(typeof(ICrudLogic<>), typeof(LogicBase<>));
services.AddScoped(typeof(ICombinedKeyCrudLogic<>), typeof(CombinedKeyLogicBase<>));
services.AddScoped<LineMessagingAccountLogic>();
services.AddScoped<ILoggingService, DbLoggingService>();
services.AddScoped<IdentityService>();
services.AddScoped<ICrudLogic<FamilyMember>, MemberLogic>();
}
}
}