mirror of https://github.com/abpframework/abp.git
committed by
GitHub
22 changed files with 193 additions and 46 deletions
@ -0,0 +1,3 @@ |
|||||
|
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
||||
|
<ConfigureAwait ContinueOnCapturedContext="false" /> |
||||
|
</Weavers> |
||||
@ -0,0 +1,30 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
||||
|
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> |
||||
|
<xs:element name="Weavers"> |
||||
|
<xs:complexType> |
||||
|
<xs:all> |
||||
|
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> |
||||
|
<xs:complexType> |
||||
|
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> |
||||
|
</xs:complexType> |
||||
|
</xs:element> |
||||
|
</xs:all> |
||||
|
<xs:attribute name="VerifyAssembly" type="xs:boolean"> |
||||
|
<xs:annotation> |
||||
|
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> |
||||
|
</xs:annotation> |
||||
|
</xs:attribute> |
||||
|
<xs:attribute name="VerifyIgnoreCodes" type="xs:string"> |
||||
|
<xs:annotation> |
||||
|
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> |
||||
|
</xs:annotation> |
||||
|
</xs:attribute> |
||||
|
<xs:attribute name="GenerateXsd" type="xs:boolean"> |
||||
|
<xs:annotation> |
||||
|
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> |
||||
|
</xs:annotation> |
||||
|
</xs:attribute> |
||||
|
</xs:complexType> |
||||
|
</xs:element> |
||||
|
</xs:schema> |
||||
@ -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> |
||||
|
<ProjectReference Include="..\Volo.Abp.Core\Volo.Abp.Core.csproj" /> |
||||
|
</ItemGroup> |
||||
|
|
||||
|
</Project> |
||||
@ -0,0 +1,9 @@ |
|||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace Volo.Abp.EventBus.Abstractions |
||||
|
{ |
||||
|
public class AbpEventBusAbstractionsModule : AbpModule |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,21 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
|
using Volo.Abp.EventBus; |
||||
|
|
||||
|
namespace Volo.Abp.MultiTenancy |
||||
|
{ |
||||
|
[Serializable] |
||||
|
[EventName("abp.multi_tenancy.tenant.connection_string.updated")] |
||||
|
public class TenantConnectionStringUpdatedEto : EtoBase |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public string ConnectionStringName { get; set; } |
||||
|
|
||||
|
public string OldValue { get; set; } |
||||
|
|
||||
|
public string NewValue { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
||||
|
using Volo.Abp.EventBus; |
||||
|
|
||||
|
namespace Volo.Abp.MultiTenancy |
||||
|
{ |
||||
|
[Serializable] |
||||
|
[EventName("abp.multi_tenancy.tenant.created")] |
||||
|
public class TenantCreatedEto : EtoBase |
||||
|
{ |
||||
|
public Guid Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using Microsoft.AspNetCore.Identity; |
||||
|
|
||||
|
namespace Volo.Abp.Identity |
||||
|
{ |
||||
|
public static class PasswordOptionsExtensions |
||||
|
{ |
||||
|
public static IDisposable ClearRequirements(this PasswordOptions options) |
||||
|
{ |
||||
|
var oldRequireDigit = options.RequireDigit; |
||||
|
var oldRequiredLength = options.RequiredLength; |
||||
|
var oldRequireLowercase = options.RequireLowercase; |
||||
|
var oldRequireUppercase = options.RequireUppercase; |
||||
|
var oldRequiredUniqueChars = options.RequiredUniqueChars; |
||||
|
var oldRequireNonAlphanumeric = options.RequireNonAlphanumeric; |
||||
|
|
||||
|
options.RequireDigit = false; |
||||
|
options.RequiredLength = 1; |
||||
|
options.RequireLowercase = false; |
||||
|
options.RequireUppercase = false; |
||||
|
options.RequiredUniqueChars = 1; |
||||
|
options.RequireNonAlphanumeric = false; |
||||
|
|
||||
|
return new DisposeAction(() => |
||||
|
{ |
||||
|
options.RequireDigit = oldRequireDigit; |
||||
|
options.RequiredLength = oldRequiredLength; |
||||
|
options.RequireLowercase = oldRequireLowercase; |
||||
|
options.RequireUppercase = oldRequireUppercase; |
||||
|
options.RequiredUniqueChars = oldRequiredUniqueChars; |
||||
|
options.RequireNonAlphanumeric = oldRequireNonAlphanumeric; |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue