Skip to content

Commit 2a195be

Browse files
UserManagement.Contracts library project added for request response objects
1 parent 2277534 commit 2a195be

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

CentralizedLoggingMonitoring.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UserManagementApi", "UserMa
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiIntegrationMvc", "ApiIntegrationMvc\ApiIntegrationMvc.csproj", "{C8A0D976-CE10-4ABC-87AA-F8EC4D41C76F}"
1111
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UserManagement.Contracts", "UserManagement.Contracts\UserManagement.Contracts.csproj", "{92C42742-A4B5-4661-99CB-3E6229B6FAE7}"
13+
EndProject
1214
Global
1315
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1416
Debug|Any CPU = Debug|Any CPU
@@ -27,6 +29,10 @@ Global
2729
{C8A0D976-CE10-4ABC-87AA-F8EC4D41C76F}.Debug|Any CPU.Build.0 = Debug|Any CPU
2830
{C8A0D976-CE10-4ABC-87AA-F8EC4D41C76F}.Release|Any CPU.ActiveCfg = Release|Any CPU
2931
{C8A0D976-CE10-4ABC-87AA-F8EC4D41C76F}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{92C42742-A4B5-4661-99CB-3E6229B6FAE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{92C42742-A4B5-4661-99CB-3E6229B6FAE7}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{92C42742-A4B5-4661-99CB-3E6229B6FAE7}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{92C42742-A4B5-4661-99CB-3E6229B6FAE7}.Release|Any CPU.Build.0 = Release|Any CPU
3036
EndGlobalSection
3137
GlobalSection(SolutionProperties) = preSolution
3238
HideSolutionNode = FALSE

UserManagement.Contracts/Class1.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace UserManagement.Contracts
2+
{
3+
public class Class1
4+
{
5+
6+
}
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
</Project>

UserManagementApi/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252

5353
builder.Services.AddHttpContextAccessor();
5454

55-
builder.Services.AddControllers();
55+
builder.Services.AddControllersWithViews();
56+
builder.Services.AddMemoryCache();
5657

5758
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
5859
builder.Services.AddEndpointsApiExplorer();

0 commit comments

Comments
 (0)