Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 4677ac4

Browse files
authored
refactor: rename common project to shared (#32)
1 parent 84f71aa commit 4677ac4

28 files changed

+130
-137
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ services:
119119
container_name: db-migrations
120120
build:
121121
context: .
122-
dockerfile: src/ServiceLayer.Common/Dockerfile.migrations
122+
dockerfile: src/ServiceLayer.Shared/Dockerfile.migrations
123123
args:
124124
DatabaseConnectionString: "${DatabaseConnectionString}"
125125
depends_on:

scripts/githooks/check-file-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function run-editorconfig-in-docker() {
101101
docker run --rm --platform linux/amd64 \
102102
--volume "$PWD":/check \
103103
"$image" \
104-
sh -c "ec --exclude '.git/' $dry_run_opt \$($filter) /dev/null"
104+
sh -c "ec --exclude '.git/|.*\.sln$' $dry_run_opt \$($filter) /dev/null"
105105
}
106106

107107
# ==============================================================================

src/ServiceLayer.Mesh/Configuration/AppConfiguration.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using ServiceLayer.Common;
2-
31
namespace ServiceLayer.Mesh.Configuration;
42

53
public class AppConfiguration :

src/ServiceLayer.Mesh/DockerFile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS installer-env
22
WORKDIR /src/dotnet-function-app
33

44
COPY ./dotnet-mesh-client/application/DotNetMeshClient/NHS.Mesh.Client/NHS.Mesh.Client.csproj ../dotnet-mesh-client/application/DotNetMeshClient/NHS.Mesh.Client/
5-
COPY ./ServiceLayer.Common/ServiceLayer.Common.csproj ../ServiceLayer.Common/
5+
COPY ./ServiceLayer.Shared/ServiceLayer.Shared.csproj ../ServiceLayer.Shared/
66
COPY ./ServiceLayer.Mesh/ServiceLayer.Mesh.csproj .
77
RUN dotnet restore
88

99
COPY ./dotnet-mesh-client/ ../dotnet-mesh-client/
10-
COPY ./ServiceLayer.Common/ ../ServiceLayer.Common/
10+
COPY ./ServiceLayer.Shared/ ../ServiceLayer.Shared/
1111
COPY ./ServiceLayer.Mesh/ .
1212

1313
RUN dotnet publish -c Release -o /home/site/wwwroot

src/ServiceLayer.Mesh/Messaging/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Azure.Identity;
22
using Azure.Storage.Queues;
33
using Microsoft.Extensions.DependencyInjection;
4-
using ServiceLayer.Common;
54

65
namespace ServiceLayer.Mesh.Messaging;
76

src/ServiceLayer.Mesh/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using ServiceLayer.Mesh.Configuration;
66
using ServiceLayer.Mesh.Messaging;
77
using ServiceLayer.Mesh.Storage;
8-
using ServiceLayer.Common;
98
using ServiceLayer.Mesh.FileTypes.NbssAppointmentEvents;
109

1110
var host = new HostBuilder()

src/ServiceLayer.Mesh/ServiceLayer.Mesh.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</None>
3232
</ItemGroup>
3333
<ItemGroup>
34-
<ProjectReference Include="..\ServiceLayer.Common\ServiceLayer.Common.csproj" />
34+
<ProjectReference Include="..\ServiceLayer.Shared\ServiceLayer.Shared.csproj" />
3535
<Using Include="System.Threading.ExecutionContext" Alias="ExecutionContext" />
3636
<ProjectReference Include="..\dotnet-mesh-client\application\DotNetMeshClient\NHS.Mesh.Client\NHS.Mesh.Client.csproj" />
3737
</ItemGroup>

src/ServiceLayer.Mesh/Storage/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Azure.Identity;
22
using Azure.Storage.Blobs;
33
using Microsoft.Extensions.DependencyInjection;
4-
using ServiceLayer.Common;
54

65
namespace ServiceLayer.Mesh.Storage;
76

src/ServiceLayer.Common/Data/DesignTimeDbContextFactory.cs renamed to src/ServiceLayer.Shared/Data/DesignTimeDbContextFactory.cs

File renamed without changes.

src/ServiceLayer.Common/Data/Migrations/20250512113115_InitialCreate.Designer.cs renamed to src/ServiceLayer.Shared/Data/Migrations/20250512113115_InitialCreate.Designer.cs

File renamed without changes.

0 commit comments

Comments
 (0)