diff --git a/aspnet-core/LINGYUN.MicroService.All.slnx b/aspnet-core/LINGYUN.MicroService.All.slnx index 3b8dc3c56..011923378 100644 --- a/aspnet-core/LINGYUN.MicroService.All.slnx +++ b/aspnet-core/LINGYUN.MicroService.All.slnx @@ -1,4 +1,11 @@ + + + + + + + @@ -85,6 +92,7 @@ + @@ -116,6 +124,7 @@ + diff --git a/aspnet-core/LINGYUN.MicroService.Aspire.slnx b/aspnet-core/LINGYUN.MicroService.Aspire.slnx index d5539f4c5..166412f51 100644 --- a/aspnet-core/LINGYUN.MicroService.Aspire.slnx +++ b/aspnet-core/LINGYUN.MicroService.Aspire.slnx @@ -228,10 +228,6 @@ - - - - @@ -568,9 +564,6 @@ - - - diff --git a/aspnet-core/framework/auditing/LINGYUN.Abp.AspNetCore.Auditing/FodyWeavers.xsd b/aspnet-core/framework/auditing/LINGYUN.Abp.AspNetCore.Auditing/FodyWeavers.xsd new file mode 100644 index 000000000..3f3946e28 --- /dev/null +++ b/aspnet-core/framework/auditing/LINGYUN.Abp.AspNetCore.Auditing/FodyWeavers.xsd @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file diff --git a/aspnet-core/framework/common/LINGYUN.Abp.Core/AbpCommonModule.cs b/aspnet-core/framework/common/LINGYUN.Abp.Core/AbpCommonModule.cs deleted file mode 100644 index 1a9e1da7d..000000000 --- a/aspnet-core/framework/common/LINGYUN.Abp.Core/AbpCommonModule.cs +++ /dev/null @@ -1,7 +0,0 @@ -using Volo.Abp.Modularity; - -namespace LINGYUN.Abp; - -public class AbpCommonModule : AbpModule -{ -} diff --git a/aspnet-core/framework/common/LINGYUN.Abp.Core/DynamicOptionsProvider.cs b/aspnet-core/framework/common/LINGYUN.Abp.Core/DynamicOptionsProvider.cs deleted file mode 100644 index ba0f722da..000000000 --- a/aspnet-core/framework/common/LINGYUN.Abp.Core/DynamicOptionsProvider.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Microsoft.Extensions.Options; -using System; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Threading; - -namespace LINGYUN.Abp; - -public class DynamicOptionsProvider : IOptionsProvider, ITransientDependency - where TValue : class, new() -{ - public TValue Value => _lazyValueFactory.Value; - - private readonly Lazy _lazyValueFactory; - private readonly OneTimeRunner _oneTimeRunner; - - public DynamicOptionsProvider(IOptions options) - { - _oneTimeRunner = new OneTimeRunner(); - _lazyValueFactory = new Lazy(() => CreateOptions(options)); - } - - protected virtual TValue CreateOptions(IOptions options) - { - // 用于简化需要在使用配置前自行调用此接口的繁复步骤 - // await options.SetAsync(); - // _onTimeRunner.Run(async () => await options.SetAsync()); - return options.Value; - } -} diff --git a/aspnet-core/framework/common/LINGYUN.Abp.Core/IOptionsProvider.cs b/aspnet-core/framework/common/LINGYUN.Abp.Core/IOptionsProvider.cs deleted file mode 100644 index f6a736afa..000000000 --- a/aspnet-core/framework/common/LINGYUN.Abp.Core/IOptionsProvider.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace LINGYUN.Abp; - -public interface IOptionsProvider - where TValue: class, new() -{ - TValue Value { get; } -} diff --git a/aspnet-core/framework/common/LINGYUN.Abp.Core/README.EN.md b/aspnet-core/framework/common/LINGYUN.Abp.Core/README.EN.md deleted file mode 100644 index 2bb4de3eb..000000000 --- a/aspnet-core/framework/common/LINGYUN.Abp.Core/README.EN.md +++ /dev/null @@ -1,46 +0,0 @@ -# LINGYUN.Abp.Core - -## Introduction - -`LINGYUN.Abp.Core` is a basic core module that provides some common functionalities and extensions. - -## Features - -* Dynamic Options Provider (`DynamicOptionsProvider`) - * Simplifies the complex steps of calling interfaces before using configuration - * Supports lazy loading of configuration values - * Provides one-time running mechanism to ensure configuration is loaded only once - -## Installation - -```bash -dotnet add package LINGYUN.Abp.Core -``` - -## Usage - -1. Add `[DependsOn(typeof(AbpCommonModule))]` to your module class. - -```csharp -[DependsOn(typeof(AbpCommonModule))] -public class YourModule : AbpModule -{ - // ... -} -``` - -2. Use Dynamic Options Provider: - -```csharp -public class YourOptionsProvider : DynamicOptionsProvider -{ - public YourOptionsProvider(IOptions options) - : base(options) - { - } -} -``` - -## Links - -* [中文文档](./README.md) diff --git a/aspnet-core/framework/common/LINGYUN.Abp.Core/README.md b/aspnet-core/framework/common/LINGYUN.Abp.Core/README.md deleted file mode 100644 index 6afd486dd..000000000 --- a/aspnet-core/framework/common/LINGYUN.Abp.Core/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# LINGYUN.Abp.Core - -## 介绍 - -`LINGYUN.Abp.Core` 是一个基础核心模块,提供了一些通用的功能和扩展。 - -## 功能 - -* 动态选项提供者 (`DynamicOptionsProvider`) - * 简化需要在使用配置前自行调用接口的繁复步骤 - * 支持延迟加载配置值 - * 提供一次性运行机制,确保配置只被加载一次 - -## 安装 - -```bash -dotnet add package LINGYUN.Abp.Core -``` - -## 使用 - -1. 添加 `[DependsOn(typeof(AbpCommonModule))]` 到你的模块类上。 - -```csharp -[DependsOn(typeof(AbpCommonModule))] -public class YourModule : AbpModule -{ - // ... -} -``` - -2. 使用动态选项提供者: - -```csharp -public class YourOptionsProvider : DynamicOptionsProvider -{ - public YourOptionsProvider(IOptions options) - : base(options) - { - } -} -``` - -## 链接 - -* [English document](./README.EN.md) diff --git a/aspnet-core/services/LY.AIO.Applications.Single/LY.AIO.Applications.Single.csproj b/aspnet-core/services/LY.AIO.Applications.Single/LY.AIO.Applications.Single.csproj index f2846373c..1c3337679 100644 --- a/aspnet-core/services/LY.AIO.Applications.Single/LY.AIO.Applications.Single.csproj +++ b/aspnet-core/services/LY.AIO.Applications.Single/LY.AIO.Applications.Single.csproj @@ -27,7 +27,7 @@ - + diff --git a/build/build-aspnetcore-common.ps1 b/build/build-aspnetcore-common.ps1 index 1019e0dfa..17f3056a5 100644 --- a/build/build-aspnetcore-common.ps1 +++ b/build/build-aspnetcore-common.ps1 @@ -20,6 +20,7 @@ $serviceArray += [PsObject]@{ Path = $rootFolder + "/../gateways/internal/LINGYU [PsObject[]]$solutionArray = @() $solutionArray += [PsObject]@{ File = $rootFolder + "/../aspnet-core/LINGYUN.MicroService.All.slnx" } +$solutionArray += [PsObject]@{ File = $rootFolder + "/../aspnet-core/LINGYUN.MicroService.Aspire.slnx" } $solutionArray += [PsObject]@{ File = $rootFolder + "/../aspnet-core/LINGYUN.MicroService.SingleProject.slnx" } $solutionArray += [PsObject]@{ File = $rootFolder + "/../gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/LINGYUN.MicroService.Internal.ApiGateway.slnx" }