-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fad463c
commit 9d7cb18
Showing
38 changed files
with
105 additions
and
105 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ootstrapper/Controllers/BaseController.cs → src/Host/Controllers/BaseController.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
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
2 changes: 1 addition & 1 deletion
2
.../Controllers/Dashboard/StatsController.cs → .../Controllers/Dashboard/StatsController.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
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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ensions/ConfigureHostBuilderExtensions.cs → ...ensions/ConfigureHostBuilderExtensions.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
File renamed without changes
78 changes: 39 additions & 39 deletions
78
src/Bootstrapper/Bootstrapper.csproj → src/Host/Host.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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RootNamespace>DN.WebApi.Bootstrapper</RootNamespace> | ||
<AssemblyName>DN.WebApi.Bootstrapper</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.4" /> | ||
<PackageReference Include="Hangfire.Console.Extensions.Serilog" Version="1.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" /> | ||
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.2" /> | ||
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" /> | ||
<PackageReference Include="Serilog.Expressions" Version="3.2.1" /> | ||
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="5.6.1" /> | ||
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Core\Application\Application.csproj" /> | ||
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.MySQL\Migrators.MySQL.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.PostgreSQL\Migrators.PostgreSQL.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.MSSQL\Migrators.MSSQL.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Update="Configurations\*.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<None Update="Files\full-stack-hero-logo.png"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Include="Email Templates\*.html"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RootNamespace>DN.WebApi.Host</RootNamespace> | ||
<AssemblyName>DN.WebApi.Host</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="FluentValidation.AspNetCore" Version="10.3.4" /> | ||
<PackageReference Include="Hangfire.Console.Extensions.Serilog" Version="1.0.2" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" /> | ||
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.2" /> | ||
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" /> | ||
<PackageReference Include="Serilog.Expressions" Version="3.2.1" /> | ||
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="5.6.1" /> | ||
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Core\Application\Application.csproj" /> | ||
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.MySQL\Migrators.MySQL.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.PostgreSQL\Migrators.PostgreSQL.csproj" /> | ||
<ProjectReference Include="..\Migrators\Migrators.MSSQL\Migrators.MSSQL.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Update="Configurations\*.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<None Update="Files\full-stack-hero-logo.png"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Include="Email Templates\*.html"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
using DN.WebApi.Application.DependencyInjection; | ||
using DN.WebApi.Bootstrapper.Extensions; | ||
using DN.WebApi.Infrastructure.DependencyInjection; | ||
using FluentValidation.AspNetCore; | ||
using Serilog; | ||
|
||
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger(); | ||
Log.Information("Server Booting Up..."); | ||
try | ||
{ | ||
var builder = WebApplication.CreateBuilder(args); | ||
|
||
builder.Host.AddConfigurations(); | ||
builder.Host.UseSerilog((_, config) => config.WriteTo.Console().ReadFrom.Configuration(builder.Configuration)); | ||
|
||
builder.Services.AddApplication(); | ||
builder.Services.AddInfrastructure(builder.Configuration); | ||
builder.Services.AddControllers().AddFluentValidation(); | ||
|
||
var app = builder.Build(); | ||
|
||
app.UseInfrastructure(builder.Configuration); | ||
app.Run(); | ||
} | ||
catch (Exception ex) when (!ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) | ||
{ | ||
Log.Fatal(ex, "Unhandled exception"); | ||
} | ||
finally | ||
{ | ||
Log.Information("Server Shutting down..."); | ||
Log.CloseAndFlush(); | ||
using DN.WebApi.Application.DependencyInjection; | ||
using DN.WebApi.Host.Extensions; | ||
using DN.WebApi.Infrastructure.DependencyInjection; | ||
using FluentValidation.AspNetCore; | ||
using Serilog; | ||
|
||
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger(); | ||
Log.Information("Server Booting Up..."); | ||
try | ||
{ | ||
var builder = WebApplication.CreateBuilder(args); | ||
|
||
builder.Host.AddConfigurations(); | ||
builder.Host.UseSerilog((_, config) => config.WriteTo.Console().ReadFrom.Configuration(builder.Configuration)); | ||
|
||
builder.Services.AddApplication(); | ||
builder.Services.AddInfrastructure(builder.Configuration); | ||
builder.Services.AddControllers().AddFluentValidation(); | ||
|
||
var app = builder.Build(); | ||
|
||
app.UseInfrastructure(builder.Configuration); | ||
app.Run(); | ||
} | ||
catch (Exception ex) when (!ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) | ||
{ | ||
Log.Fatal(ex, "Unhandled exception"); | ||
} | ||
finally | ||
{ | ||
Log.Information("Server Shutting down..."); | ||
Log.CloseAndFlush(); | ||
} |
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
File renamed without changes.
Oops, something went wrong.