namespace CloudGaming.Core.ApplicationServices;
///
/// 服务父类
///
[Component]
public abstract class ApplicationService(IServiceProvider serviceProvider)
: IAopServiceProvider //: ITransientSelfDependency
{
public IServiceProvider ServiceProvider { get; set; } = serviceProvider;
}
///
/// 服务父类
///
/// 数据库实体
public abstract class ApplicationService(IServiceProvider serviceProvider)
: ApplicationService(serviceProvider) where TEntity : class, new()
{
///
/// 默认仓储
///
[Autowired]
protected IRepository Repository { get; } = null!;
}