Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
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
almohanad.hafez
HIAST-Clinics
Commits
2ef87996
Commit
2ef87996
authored
Aug 31, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Rename notifications services project
parent
85554f52
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
19 deletions
+20
-19
API.csproj
Clinics.Backend/API/API.csproj
+1
-1
Program.cs
Clinics.Backend/API/Program.cs
+4
-4
Clinics.Backend.sln
Clinics.Backend/Clinics.Backend.sln
+3
-2
INotificationClient.cs
...ackend/Infrastructure/Abstractions/INotificationClient.cs
+1
-1
AssemblyReference.cs
Clinics.Backend/Infrastructure/AssemblyReference.cs
+1
-1
DoctorsNotificationsHub.cs
...frastructure/NotificationsHubs/DoctorsNotificationsHub.cs
+3
-3
ReceptionistsNotificationsHub.cs
...ucture/NotificationsHubs/ReceptionistsNotificationsHub.cs
+3
-3
NotificationsService.csproj
Clinics.Backend/Infrastructure/NotificationsService.csproj
+0
-0
DoctorsNotificationsService.cs
...ificationsServices/Doctors/DoctorsNotificationsService.cs
+4
-4
No files found.
Clinics.Backend/API/API.csproj
View file @
2ef87996
...
...
@@ -26,7 +26,7 @@
<ItemGroup>
<ProjectReference Include="..\Application\Application.csproj" />
<ProjectReference Include="..\Domain\Domain.csproj" />
<ProjectReference Include="..\Infrastructure\
Infrastructur
e.csproj" />
<ProjectReference Include="..\Infrastructure\
NotificationsServic
e.csproj" />
<ProjectReference Include="..\Persistence\Persistence.csproj" />
<ProjectReference Include="..\Presentation\Presentation.csproj" />
</ItemGroup>
...
...
Clinics.Backend/API/Program.cs
View file @
2ef87996
...
...
@@ -3,13 +3,12 @@ using API.Options.JWT;
using
API.SeedDatabaseHelper
;
using
Application.Behaviors
;
using
FluentValidation
;
using
Infrastructure
;
using
Infrastructure.NotificationsHubs
;
using
MediatR
;
using
Microsoft.AspNetCore.Authentication.JwtBearer
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.Extensions.Options
;
using
Microsoft.OpenApi.Models
;
using
NotificationsService.NotificationsHubs
;
using
Persistence.Context
;
var
builder
=
WebApplication
.
CreateBuilder
(
args
);
...
...
@@ -55,8 +54,9 @@ builder
.
Services
.
Scan
(
selector
=>
selector
.
FromAssemblies
(
Persistence
.
AssemblyReference
.
Assembly
,
Infrastructure
.
AssemblyReference
.
Assembly
.
FromAssemblies
(
Persistence
.
AssemblyReference
.
Assembly
,
NotificationsService
.
AssemblyReference
.
Assembly
)
.
AddClasses
(
false
)
.
AsImplementedInterfaces
()
...
...
Clinics.Backend/Clinics.Backend.sln
View file @
2ef87996
...
...
@@ -21,11 +21,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Persistence", "Persistence\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "API", "API\API.csproj", "{15B2AA13-EBBD-408B-A4B3-4BAB43D74267}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "
Infrastructure", "Infrastructure\Infrastructur
e.csproj", "{4EB41743-695F-4822-87F6-E6F9B48A8E6B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "
NotificationsService", "Infrastructure\NotificationsServic
e.csproj", "{4EB41743-695F-4822-87F6-E6F9B48A8E6B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{05E390C6-AFE5-42FB-A3E2-CEEE1E6A75EE}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
}") = "ArchitectureTests", "ArchitectureTests\ArchitectureTests.csproj", "{07C6D0DB-7181-4E6F-9BC1-863FCDAD9490}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556
}") = "ArchitectureTests", "ArchitectureTests\ArchitectureTests.csproj", "{07C6D0DB-7181-4E6F-9BC1-863FCDAD9490}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
@@ -73,6 +73,7 @@ Global
{CE41FA28-76D7-4DC0-A980-B953F87253F5} = {6FC36DEB-2BC3-4980-B46B-7E518DAF09BF}
{D04C0D6C-3FC9-4359-A017-DFCFA1475639} = {878AE2C9-3E34-4332-ACC0-E6B601085710}
{2B5111ED-7AB8-46E2-90F8-AF0C70265618} = {FDA56BCD-A53D-4BA1-A59D-3F44FA32DDD7}
{15B2AA13-EBBD-408B-A4B3-4BAB43D74267} = {26CA1441-8533-428E-9DD2-26F2FB428488}
{4EB41743-695F-4822-87F6-E6F9B48A8E6B} = {FDA56BCD-A53D-4BA1-A59D-3F44FA32DDD7}
{07C6D0DB-7181-4E6F-9BC1-863FCDAD9490} = {05E390C6-AFE5-42FB-A3E2-CEEE1E6A75EE}
EndGlobalSection
...
...
Clinics.Backend/Infrastructure/Abstractions/INotificationClient.cs
View file @
2ef87996
using
Application.Abstractions.Notifications
;
namespace
Infrastructur
e.Abstractions
;
namespace
NotificationsServic
e.Abstractions
;
public
interface
INotificationClient
{
...
...
Clinics.Backend/Infrastructure/AssemblyReference.cs
View file @
2ef87996
using
System.Reflection
;
namespace
Infrastructur
e
;
namespace
NotificationsServic
e
;
public
class
AssemblyReference
{
...
...
Clinics.Backend/Infrastructure/NotificationsHubs/DoctorsNotificationsHub.cs
View file @
2ef87996
using
Infrastructure.Abstractions
;
using
Microsoft.AspNetCore.SignalR
;
using
Microsoft.AspNetCore.SignalR
;
using
NotificationsService.Abstractions
;
namespace
Infrastructur
e.NotificationsHubs
;
namespace
NotificationsServic
e.NotificationsHubs
;
public
class
DoctorsNotificationsHub
:
Hub
<
INotificationClient
>
{
...
...
Clinics.Backend/Infrastructure/NotificationsHubs/ReceptionistsNotificationsHub.cs
View file @
2ef87996
using
Infrastructure.Abstractions
;
using
Microsoft.AspNetCore.SignalR
;
using
Microsoft.AspNetCore.SignalR
;
using
NotificationsService.Abstractions
;
namespace
Infrastructur
e.NotificationsHubs
;
namespace
NotificationsServic
e.NotificationsHubs
;
public
class
ReceptionistsNotificationsHub
:
Hub
<
INotificationClient
>
{
...
...
Clinics.Backend/Infrastructure/
Infrastructur
e.csproj
→
Clinics.Backend/Infrastructure/
NotificationsServic
e.csproj
View file @
2ef87996
File moved
Clinics.Backend/Infrastructure/NotificationsServices/Doctors/DoctorsNotificationsService.cs
View file @
2ef87996
using
Application.Notifications.Doctors
;
using
Application.Notifications.Doctors.NewVisitNotifications
;
using
Infrastructure.Abstractions
;
using
Infrastructure.NotificationsHubs
;
using
Microsoft.AspNetCore.SignalR
;
using
NotificationsService.Abstractions
;
using
NotificationsService.NotificationsHubs
;
namespace
Infrastructur
e.NotificationsServices.Doctors
;
namespace
NotificationsServic
e.NotificationsServices.Doctors
;
public
class
DoctorsNotificationsService
:
IDoctorsNotificationService
{
...
...
@@ -16,7 +16,7 @@ public class DoctorsNotificationsService : IDoctorsNotificationService
_context
=
context
;
}
#
endregion
public
async
Task
SendNewVisitNotification
(
NewVisitNotification
notification
)
{
await
_context
.
Clients
.
All
.
ReceiveNotification
(
notification
);
...
...
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