Skip to content

Commit

Permalink
refactor: startup services configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Nov 22, 2024
1 parent 0078411 commit 237242e
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 38 deletions.
1 change: 0 additions & 1 deletion src/2-Services/Boards/Api/Boards.Read.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Boards.Read.Api.Configuration;

namespace TaskoMask.Services.Boards.Read.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Grpc;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;
using TaskoMask.Services.Boards.Read.Api.Configuration;
using TaskoMask.Services.Boards.Read.Api.Infrastructure.DbContext;
using TaskoMask.Services.Boards.Read.Api.Infrastructure.DI;

namespace TaskoMask.Services.Boards.Read.Api.Configuration;
namespace TaskoMask.Services.Boards.Read.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Boards/Api/Boards.Write.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Boards.Write.Api.Configuration;

namespace TaskoMask.Services.Boards.Write.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using TaskoMask.Services.Boards.Write.Api.Infrastructure.CrossCutting.DI;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext;

namespace TaskoMask.Services.Boards.Write.Api.Configuration;
namespace TaskoMask.Services.Boards.Write.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class IdentityServerExtensions
/// <summary>
///
/// </summary>
public static void AddIdentityServer(this IServiceCollection services)
public static void AddPreConfiguredIdentityServer(this IServiceCollection services)
{
services
.AddIdentityServer(options =>
Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Identity/Api/Identity.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Identity.Api.Configuration;

namespace TaskoMask.Services.Identity.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Captcha;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;
using TaskoMask.Services.Identity.Api.Configuration;
using TaskoMask.Services.Identity.Api.Infrastructure.CrossCutting.DI;

namespace TaskoMask.Services.Identity.Api.Configuration;
namespace TaskoMask.Services.Identity.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand All @@ -22,7 +23,7 @@ public static WebApplication ConfigureServices(this WebApplicationBuilder builde

builder.Services.AddModules(builder.Configuration);

builder.Services.AddIdentityServer();
builder.Services.AddPreConfiguredIdentityServer();

builder.Services.AddControllers();

Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Owners/Api/Owners.Read.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Owners.Read.Api.Configuration;

namespace TaskoMask.Services.Owners.Read.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Grpc;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;
using TaskoMask.Services.Owners.Read.Api.Configuration;
using TaskoMask.Services.Owners.Read.Api.Infrastructure.DbContext;
using TaskoMask.Services.Owners.Read.Api.Infrastructure.DI;

namespace TaskoMask.Services.Owners.Read.Api.Configuration;
namespace TaskoMask.Services.Owners.Read.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Owners/Api/Owners.Write.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Owners.Write.Api.Configuration;

namespace TaskoMask.Services.Owners.Write.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using TaskoMask.Services.Owners.Write.Api.Infrastructure.CrossCutting.DI;
using TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.DbContext;

namespace TaskoMask.Services.Owners.Write.Api.Configuration;
namespace TaskoMask.Services.Owners.Write.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Tasks/Api/Tasks.Read.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Tasks.Read.Api.Configuration;

namespace TaskoMask.Services.Tasks.Read.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Grpc;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;
using TaskoMask.Services.Tasks.Read.Api.Configuration;
using TaskoMask.Services.Tasks.Read.Api.Infrastructure.DbContext;
using TaskoMask.Services.Tasks.Read.Api.Infrastructure.DI;

namespace TaskoMask.Services.Tasks.Read.Api.Configuration;
namespace TaskoMask.Services.Tasks.Read.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
1 change: 0 additions & 1 deletion src/2-Services/Tasks/Api/Tasks.Write.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Builder;
using TaskoMask.Services.Tasks.Write.Api.Configuration;

namespace TaskoMask.Services.Tasks.Write.Api;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using TaskoMask.Services.Tasks.Write.Api.Infrastructure.CrossCutting.DI;
using TaskoMask.Services.Tasks.Write.Api.Infrastructure.Data.DbContext;

namespace TaskoMask.Services.Tasks.Write.Api.Configuration;
namespace TaskoMask.Services.Tasks.Write.Api;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
2 changes: 0 additions & 2 deletions src/3-ApiGateways/UserPanel/Aggregator/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using TaskoMask.ApiGateways.UserPanel.Aggregator.Configuration;

namespace TaskoMask.ApiGateways.UserPanel.Aggregator;

internal class Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using Serilog;
using TaskoMask.ApiGateways.UserPanel.Aggregator.Configuration;
using TaskoMask.ApiGateways.UserPanel.Aggregator.Infrastructure.DI;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;

namespace TaskoMask.ApiGateways.UserPanel.Aggregator.Configuration;
namespace TaskoMask.ApiGateways.UserPanel.Aggregator;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
2 changes: 0 additions & 2 deletions src/3-ApiGateways/UserPanel/ApiGateway/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using TaskoMask.ApiGateways.UserPanel.ApiGateway.Configuration;

namespace TaskoMask.ApiGateways.UserPanel.ApiGateway;

internal class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Metric;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;

namespace TaskoMask.ApiGateways.UserPanel.ApiGateway.Configuration;
namespace TaskoMask.ApiGateways.UserPanel.ApiGateway;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down
1 change: 0 additions & 1 deletion src/4-Clients/UserPanel/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using TaskoMask.Clients.UserPanel.Configuration;

namespace TaskoMask.Clients.UserPanel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
using Blazored.Modal;
using Blazored.Toast;
using TaskoMask.BuildingBlocks.Web.Configuration;
using TaskoMask.Clients.UserPanel.Configuration;
using TaskoMask.Clients.UserPanel.Helpers;
using TaskoMask.Clients.UserPanel.Services.API;
using TaskoMask.Clients.UserPanel.Services.ComponentMessage;
using TaskoMask.Clients.UserPanel.Services.DragDrop;

namespace TaskoMask.Clients.UserPanel.Configuration;
namespace TaskoMask.Clients.UserPanel;

/// <summary>
///
/// </summary>
public static class HostingExtensions
public static class Startup
{
/// <summary>
///
Expand Down
2 changes: 0 additions & 2 deletions src/4-Clients/Website/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using TaskoMask.Clients.Website.Configuration;

namespace TaskoMask.Clients.Website;

internal class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.MVC;
using TaskoMask.BuildingBlocks.Web.MVC.Configuration.Serilog;

namespace TaskoMask.Clients.Website.Configuration;
namespace TaskoMask.Clients.Website;

internal static class HostingExtensions
internal static class Startup
{
/// <summary>
///
Expand Down

0 comments on commit 237242e

Please sign in to comment.