Skip to content

Commit

Permalink
Merge branch 'feature/abp-8.2.x' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp committed Sep 1, 2024
2 parents 54d1c09 + c209242 commit 3ca98e7
Show file tree
Hide file tree
Showing 30 changed files with 3,149 additions and 526 deletions.
7 changes: 0 additions & 7 deletions Passingwind.WorkflowApp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.App
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.HttpApi", "app\src\Passingwind.WorkflowApp.HttpApi\Passingwind.WorkflowApp.HttpApi.csproj", "{937FD205-032F-44CE-A669-0A64956B08DC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.HttpApi.Host", "app\src\Passingwind.WorkflowApp.HttpApi.Host\Passingwind.WorkflowApp.HttpApi.Host.csproj", "{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.Web", "app\src\Passingwind.WorkflowApp.Web\Passingwind.WorkflowApp.Web.csproj", "{B00128BF-E5BA-4FF6-953E-9788C10B1277}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.DbMigrator", "app\src\Passingwind.WorkflowApp.DbMigrator\Passingwind.WorkflowApp.DbMigrator.csproj", "{18944C79-D798-40C4-9397-47F41B18D2C9}"
Expand Down Expand Up @@ -131,10 +129,6 @@ Global
{937FD205-032F-44CE-A669-0A64956B08DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{937FD205-032F-44CE-A669-0A64956B08DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{937FD205-032F-44CE-A669-0A64956B08DC}.Release|Any CPU.Build.0 = Release|Any CPU
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E}.Release|Any CPU.Build.0 = Release|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B00128BF-E5BA-4FF6-953E-9788C10B1277}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -203,7 +197,6 @@ Global
{D52AE6C4-96EC-4A02-A6A4-336136061000} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{65B43D4A-4C50-40C7-ACB3-AD9AF67D9649} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{937FD205-032F-44CE-A669-0A64956B08DC} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{0BB7F750-4CF9-47D4-8192-8A53C1EE6C6E} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{B00128BF-E5BA-4FF6-953E-9788C10B1277} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{18944C79-D798-40C4-9397-47F41B18D2C9} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{781EE124-0BFE-49CA-8953-BD110FB1A88B} = {93A146E1-E830-4943-A5C3-BC464376C979}
Expand Down
2 changes: 1 addition & 1 deletion app/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Version>1.0.0</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<AbpProjectType>app</AbpProjectType>
<AbpVersion>8.0.2</AbpVersion>
<AbpVersion>8.2.2</AbpVersion>
<ElsaVersion>2.14.1</ElsaVersion>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Passingwind.WorkflowApp.Data;
using Serilog;
using Volo.Abp;

namespace Passingwind.WorkflowApp.DbMigrator;
Expand All @@ -26,7 +25,6 @@ public async Task StartAsync(CancellationToken cancellationToken)
{
options.Services.ReplaceConfiguration(_configuration);
options.UseAutofac();
options.Services.AddLogging(c => c.AddSerilog());
}))
{
await application.InitializeAsync();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\common.props" />
<Import Project="..\..\common.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.*" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" />
<ProjectReference Include="..\Passingwind.WorkflowApp.Application.Contracts\Passingwind.WorkflowApp.Application.Contracts.csproj" />
<ProjectReference Include="..\Passingwind.WorkflowApp.EntityFrameworkCore\Passingwind.WorkflowApp.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" />
<ProjectReference Include="..\Passingwind.WorkflowApp.Application.Contracts\Passingwind.WorkflowApp.Application.Contracts.csproj" />
<ProjectReference Include="..\Passingwind.WorkflowApp.EntityFrameworkCore\Passingwind.WorkflowApp.EntityFrameworkCore.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Logs\**" />
<Content Remove="Logs\**" />
<EmbeddedResource Remove="Logs\**" />
<None Remove="Logs\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Logs\**" />
<Content Remove="Logs\**" />
<EmbeddedResource Remove="Logs\**" />
<None Remove="Logs\**" />
</ItemGroup>

</Project>
30 changes: 4 additions & 26 deletions app/src/Passingwind.WorkflowApp.DbMigrator/Program.cs
Original file line number Diff line number Diff line change
@@ -1,41 +1,19 @@
using System.IO;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog.Events;

namespace Passingwind.WorkflowApp.DbMigrator;

class Program
internal static class Program
{
static async Task Main(string[] args)
private static async Task Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Information()
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
.MinimumLevel.Override("Volo.Abp", LogEventLevel.Warning)
#if DEBUG
.MinimumLevel.Override("Passingwind.WorkflowApp", LogEventLevel.Debug)
#else
.MinimumLevel.Override("Passingwind.WorkflowApp", LogEventLevel.Information)
#endif
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();

await CreateHostBuilder(args).RunConsoleAsync();
}

public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.AddAppSettingsSecretsJson()
.ConfigureLogging((context, logging) => logging.ClearProviders())
.ConfigureServices((hostContext, services) =>
{
services.AddHostedService<DbMigratorHostedService>();
});
.ConfigureServices((_, services) => services.AddHostedService<DbMigratorHostedService>());
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class WorkflowAppDbContext :
public DbSet<IdentitySecurityLog> SecurityLogs { get; set; }
public DbSet<IdentityLinkUser> LinkUsers { get; set; }
public DbSet<IdentityUserDelegation> UserDelegations { get; set; }
public DbSet<IdentitySession> Sessions { get; }

/// <summary>
/// Tenant Management
Expand All @@ -61,6 +62,7 @@ public class WorkflowAppDbContext :

public DbSet<ApiKey> ApiKeys { get; set; }


public WorkflowAppDbContext(DbContextOptions<WorkflowAppDbContext> options)
: base(options)
{
Expand Down
Loading

0 comments on commit 3ca98e7

Please sign in to comment.