Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
ProjectsStatusManagement
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
ProjectsStatusManagement
Commits
92f7ddf3
Commit
92f7ddf3
authored
Aug 28, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor domain architecture
parent
6a82d6a4
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
21 additions
and
34 deletions
+21
-34
HomeController.cs
PSManagement.Api/Controllers/HomeController.cs
+0
-25
Startup.cs
PSManagement.Api/Startup.cs
+1
-1
DependencyInjection.cs
...ion/ApplicationDependencyInjection/DependencyInjection.cs
+0
-0
PSManagement.Domain.csproj
PSManagement.Domain/PSManagement.Domain.csproj
+1
-0
StepsErrors.cs
PSManagement.Domain/Steps/DomainErrors/StepsErrors.cs
+0
-0
Step.cs
PSManagement.Domain/Steps/Entites/Step.cs
+0
-0
IStepsRepository.cs
PSManagement.Domain/Steps/Repositories/IStepsRepository.cs
+0
-0
StepSpecification.cs
PSManagement.Domain/Steps/Specification/StepSpecification.cs
+0
-0
StepInfo.cs
PSManagement.Domain/Steps/ValueObjects/StepInfo.cs
+0
-0
DependencyInjection.cs
...re.Persistence/DependencyInjection/DependencyInjection.cs
+0
-0
DependencyInjection.cs
...Infrastructure/DependencyInjection/DependencyInjection.cs
+11
-3
DependencyInjection.cs
...t.Presentation/DependencyInjection/DependencyInjection.cs
+0
-0
ILoggableQuery.cs
PSManagement.SharedKernel/CQRS/Queries/ILoggableQuery.cs
+7
-0
IQuery.cs
PSManagement.SharedKernel/CQRS/Queries/IQuery.cs
+1
-0
ProjectsStatusManagement.sln
ProjectsStatusManagement.sln
+0
-5
No files found.
PSManagement.Api/Controllers/HomeController.cs
deleted
100644 → 0
View file @
6a82d6a4
using
Microsoft.AspNetCore.Authorization
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
PSManagement.Api.Controllers
{
[
Route
(
"api/[controller]"
)]
[
ApiController
]
[
Authorize
]
public
class
HomeController
:
ControllerBase
{
[
HttpGet
]
public
IActionResult
Get
()
{
return
Ok
(
new
{
message
=
"success"
});
}
}
}
PSManagement.Api/Startup.cs
View file @
92f7ddf3
...
@@ -36,7 +36,7 @@ namespace PSManagement.Api
...
@@ -36,7 +36,7 @@ namespace PSManagement.Api
.
AddPresentation
()
.
AddPresentation
()
.
AddApplication
()
.
AddApplication
()
.
AddPersistence
(
Configuration
)
.
AddPersistence
(
Configuration
)
.
AddInfrastructure
(
Configuration
);
.
AddInfrastructure
Sevices
(
Configuration
);
}
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
...
...
PSManagement.Application/
DependencyInjectionConfigura
tion/DependencyInjection.cs
→
PSManagement.Application/
ApplicationDependencyInjec
tion/DependencyInjection.cs
View file @
92f7ddf3
File moved
PSManagement.Domain/PSManagement.Domain.csproj
View file @
92f7ddf3
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<Folder Include="FinancialSpends\ValueObjects\" />
<Folder Include="FinancialSpends\ValueObjects\" />
<Folder Include="Identity\ValueObjects\" />
<Folder Include="Identity\ValueObjects\" />
<Folder Include="ProjectsTypes\ValueObjects\" />
<Folder Include="ProjectsTypes\ValueObjects\" />
<Folder Include="Steps\DomainEvents\" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
PSManagement.Domain/
Project
s/DomainErrors/StepsErrors.cs
→
PSManagement.Domain/
Step
s/DomainErrors/StepsErrors.cs
View file @
92f7ddf3
File moved
PSManagement.Domain/
Projects/Entiti
es/Step.cs
→
PSManagement.Domain/
Steps/Entit
es/Step.cs
View file @
92f7ddf3
File moved
PSManagement.Domain/
Project
s/Repositories/IStepsRepository.cs
→
PSManagement.Domain/
Step
s/Repositories/IStepsRepository.cs
View file @
92f7ddf3
File moved
PSManagement.Domain/
Project
s/Specification/StepSpecification.cs
→
PSManagement.Domain/
Step
s/Specification/StepSpecification.cs
View file @
92f7ddf3
File moved
PSManagement.Domain/
Project
s/ValueObjects/StepInfo.cs
→
PSManagement.Domain/
Step
s/ValueObjects/StepInfo.cs
View file @
92f7ddf3
File moved
PSManagement.Infrastructure.Persistence/DependencyInjection
Configuration
/DependencyInjection.cs
→
PSManagement.Infrastructure.Persistence/DependencyInjection/DependencyInjection.cs
View file @
92f7ddf3
File moved
PSManagement.Infrastructure/DependencyInjection
Configuration
/DependencyInjection.cs
→
PSManagement.Infrastructure/DependencyInjection/DependencyInjection.cs
View file @
92f7ddf3
...
@@ -26,14 +26,14 @@ namespace PSManagement.Infrastructure.DI
...
@@ -26,14 +26,14 @@ namespace PSManagement.Infrastructure.DI
{
{
public
static
class
DependencyInjection
public
static
class
DependencyInjection
{
{
public
static
IServiceCollection
AddInfrastructure
(
this
IServiceCollection
services
,
IConfiguration
configuration
)
public
static
IServiceCollection
AddInfrastructure
Sevices
(
this
IServiceCollection
services
,
IConfiguration
configuration
)
{
{
services
services
.
AddAuthentication
(
configuration
)
.
AddAuthentication
(
configuration
)
.
AddAuthorization
()
.
AddAuthorization
()
.
AddServices
(
configuration
)
.
AddServices
(
configuration
)
.
AddBackgroundServices
(
configuration
)
;
.
AddBackgroundServices
(
configuration
)
.
AddCronJobs
();
return
services
;
return
services
;
}
}
...
@@ -95,5 +95,13 @@ namespace PSManagement.Infrastructure.DI
...
@@ -95,5 +95,13 @@ namespace PSManagement.Infrastructure.DI
return
services
;
return
services
;
}
}
#
endregion
Authentication
#
endregion
Authentication
#
region
Cron
Jobs
private
static
IServiceCollection
AddCronJobs
(
this
IServiceCollection
services
)
{
return
services
;
}
#
endregion
}
}
}
}
PSManagement.Presentation/D
I
/DependencyInjection.cs
→
PSManagement.Presentation/D
ependencyInjection
/DependencyInjection.cs
View file @
92f7ddf3
File moved
PSManagement.SharedKernel/CQRS/Queries/ILoggableQuery.cs
0 → 100644
View file @
92f7ddf3
namespace
PSManagement.SharedKernel.CQRS.Query
{
public
interface
ILoggableQuery
<
out
TResponse
>
:
IQuery
<
TResponse
>
{
}
}
PSManagement.SharedKernel/CQRS/Queries/IQuery.cs
View file @
92f7ddf3
...
@@ -5,4 +5,5 @@ namespace PSManagement.SharedKernel.CQRS.Query
...
@@ -5,4 +5,5 @@ namespace PSManagement.SharedKernel.CQRS.Query
public
interface
IQuery
<
out
TResponse
>
:
IRequest
<
TResponse
>
public
interface
IQuery
<
out
TResponse
>
:
IRequest
<
TResponse
>
{
{
}
}
}
}
ProjectsStatusManagement.sln
View file @
92f7ddf3
...
@@ -5,8 +5,6 @@ VisualStudioVersion = 16.0.34601.136
...
@@ -5,8 +5,6 @@ VisualStudioVersion = 16.0.34601.136
MinimumVisualStudioVersion = 10.0.40219.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{016CB7CA-D962-4D88-BA4F-FE5A94F35C90}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{016CB7CA-D962-4D88-BA4F-FE5A94F35C90}"
EndProject
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{0FDF8D98-F5E9-4BEB-B801-36ED8F9E6763}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Api", "Api", "{A5B5B6F2-1390-4F70-8379-4FA9252043A3}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Api", "Api", "{A5B5B6F2-1390-4F70-8379-4FA9252043A3}"
EndProject
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSManagement.Api", "PSManagement.Api\PSManagement.Api.csproj", "{CC2050CF-C358-4E97-8889-644924CFFFF6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSManagement.Api", "PSManagement.Api\PSManagement.Api.csproj", "{CC2050CF-C358-4E97-8889-644924CFFFF6}"
...
@@ -29,8 +27,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Domain", "Domain", "{F823B4
...
@@ -29,8 +27,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Domain", "Domain", "{F823B4
EndProject
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SharedKernel", "SharedKernel", "{9C4A8DA5-024F-48AD-BD57-37FC8AEBAFA2}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SharedKernel", "SharedKernel", "{9C4A8DA5-024F-48AD-BD57-37FC8AEBAFA2}"
EndProject
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UnitTests", "UnitTests", "{84B78C28-82FF-4D1D-88C0-A8E627582714}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSManagement.Presentation", "PSManagement.Presentation\PSManagement.Presentation.csproj", "{78B92586-BECB-456B-A06C-F251BD593025}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSManagement.Presentation", "PSManagement.Presentation\PSManagement.Presentation.csproj", "{78B92586-BECB-456B-A06C-F251BD593025}"
EndProject
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{5E63B74D-16D2-4A0D-AB2C-9A74D9E80884}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{5E63B74D-16D2-4A0D-AB2C-9A74D9E80884}"
...
@@ -97,7 +93,6 @@ Global
...
@@ -97,7 +93,6 @@ Global
{A8A58969-B142-4968-982B-16F771A7C805} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{A8A58969-B142-4968-982B-16F771A7C805} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{F823B488-2A6B-40C0-B332-65C861DA40E3} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{F823B488-2A6B-40C0-B332-65C861DA40E3} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{9C4A8DA5-024F-48AD-BD57-37FC8AEBAFA2} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{9C4A8DA5-024F-48AD-BD57-37FC8AEBAFA2} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{84B78C28-82FF-4D1D-88C0-A8E627582714} = {0FDF8D98-F5E9-4BEB-B801-36ED8F9E6763}
{78B92586-BECB-456B-A06C-F251BD593025} = {5E63B74D-16D2-4A0D-AB2C-9A74D9E80884}
{78B92586-BECB-456B-A06C-F251BD593025} = {5E63B74D-16D2-4A0D-AB2C-9A74D9E80884}
{5E63B74D-16D2-4A0D-AB2C-9A74D9E80884} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{5E63B74D-16D2-4A0D-AB2C-9A74D9E80884} = {016CB7CA-D962-4D88-BA4F-FE5A94F35C90}
{122442B5-0221-43A7-80A3-555E91699951} = {8EEECA2A-3857-4081-A67C-49B9610FE5AE}
{122442B5-0221-43A7-80A3-555E91699951} = {8EEECA2A-3857-4081-A67C-49B9610FE5AE}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment