-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: upgrade abp framework to 8.1.2
- Loading branch information
Showing
112 changed files
with
3,162 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
aspnet-core/framework/cloud-aliyun/LINGYUN.Abp.Aliyun.Features/FodyWeavers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> | ||
<ConfigureAwait ContinueOnCapturedContext="false" /> | ||
</Weavers> |
15 changes: 15 additions & 0 deletions
15
...ore/framework/cloud-aliyun/LINGYUN.Abp.Aliyun.Features/LINGYUN.Abp.Aliyun.Features.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="..\..\..\..\configureawait.props" /> | ||
<Import Project="..\..\..\..\common.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<RootNamespace /> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Volo.Abp.Features" /> | ||
</ItemGroup> | ||
|
||
</Project> |
27 changes: 27 additions & 0 deletions
27
...INGYUN.Abp.Aliyun.Features/LINGYUN/Abp/Aliyun/Features/AliyunFeatureDefinitionProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using LINGYUN.Abp.Aliyun.Localization; | ||
using Volo.Abp.Features; | ||
using Volo.Abp.Localization; | ||
using Volo.Abp.Validation.StringValues; | ||
|
||
namespace LINGYUN.Abp.Aliyun.Features; | ||
public class AliyunFeatureDefinitionProvider : FeatureDefinitionProvider | ||
{ | ||
public override void Define(IFeatureDefinitionContext context) | ||
{ | ||
var featureGroup = context.AddGroup( | ||
name: AliyunFeatureNames.GroupName, | ||
displayName: L("Features:AlibabaCloud")); | ||
|
||
featureGroup.AddFeature( | ||
name: AliyunFeatureNames.IsEnabled, | ||
defaultValue: false.ToString(), | ||
displayName: L("Features:AlibabaCloud:IsEnabled"), | ||
description: L("Features:AlibabaCloud:IsEnabledDesc"), | ||
valueType: new ToggleStringValueType(new BooleanValueValidator())); | ||
} | ||
|
||
private static ILocalizableString L(string name) | ||
{ | ||
return LocalizableString.Create<AliyunResource>(name); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...loud-aliyun/LINGYUN.Abp.Aliyun.Features/LINGYUN/Abp/Aliyun/Features/AliyunFeatureNames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace LINGYUN.Abp.Aliyun.Features; | ||
public static class AliyunFeatureNames | ||
{ | ||
public const string GroupName = "AlibabaCloud"; | ||
|
||
public const string IsEnabled = GroupName + ".IsEnabled"; | ||
|
||
public static class Sms | ||
{ | ||
public const string Default = GroupName + ".Sms"; | ||
|
||
public const string IsEnabled = Default + ".IsEnabled"; | ||
|
||
/// <summary> | ||
/// 发送次数上限 | ||
/// </summary> | ||
public const string SendLimit = Default + ".SendLimit"; | ||
/// <summary> | ||
/// 发送次数上限时长 | ||
/// </summary> | ||
public const string SendLimitInterval = Default + ".SendLimitInterval"; | ||
/// <summary> | ||
/// 默认发送次数上限 | ||
/// </summary> | ||
public const int DefaultSendLimit = 1000; | ||
/// <summary> | ||
/// 默认发送次数上限时长 | ||
/// </summary> | ||
public const int DefaultSendLimitInterval = 1; | ||
} | ||
|
||
public static class Oss | ||
{ | ||
public const string Default = GroupName + ".Sms"; | ||
|
||
public const string IsEnabled = GroupName + ".IsEnabled"; | ||
} | ||
} |
Oops, something went wrong.