Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Quang nd committed Oct 24, 2024
1 parent 9bdcf79 commit ac9d0aa
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 197 deletions.
57 changes: 0 additions & 57 deletions .azdo/pipelines/azure-dev.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .devcontainer/devcontainer.json

This file was deleted.

13 changes: 0 additions & 13 deletions .github/FUNDING.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/azure-dev.yml

This file was deleted.

3 changes: 1 addition & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- <ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath> -->
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
20 changes: 9 additions & 11 deletions UserService.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1

# src
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Domain", "src\Domain\Domain.csproj", "{C7E89A3E-A631-4760-8D61-BD1EAB1C4E69}"
EndProject
Expand All @@ -27,9 +28,6 @@ EndProject
#Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{664D406C-2F83-48F0-BFC3-408D5CB53C65}"
#EndProject




Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -57,14 +55,14 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C7E89A3E-A631-4760-8D61-BD1EAB1C4E69} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
{34C0FACD-F3D9-400C-8945-554DD6B0819A} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
{117DA02F-5274-4565-ACC6-DA9B6E568B09} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
{4E4EE20C-F06A-4A1B-851F-C5577796941C} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
{DEFF4009-1FAB-4392-80B6-707E2DC5C00B} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
{DC37FD87-552C-4613-9F16-1537CA522898} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
{EA6127A5-94C9-4C31-AD11-E6811B92B520} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
{01FA6786-921D-4CE8-8C50-4FDA66C9477D} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
# {C7E89A3E-A631-4760-8D61-BD1EAB1C4E69} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
# {34C0FACD-F3D9-400C-8945-554DD6B0819A} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
# {117DA02F-5274-4565-ACC6-DA9B6E568B09} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
# {4E4EE20C-F06A-4A1B-851F-C5577796941C} = {6ED356A7-8B47-4613-AD01-C85CF28491BD}
# {DEFF4009-1FAB-4392-80B6-707E2DC5C00B} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
# {DC37FD87-552C-4613-9F16-1537CA522898} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
# {EA6127A5-94C9-4C31-AD11-E6811B92B520} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
# {01FA6786-921D-4CE8-8C50-4FDA66C9477D} = {664D406C-2F83-48F0-BFC3-408D5CB53C65}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3CB609D9-5D54-4C11-A371-DAAC8B74E430}
Expand Down
9 changes: 0 additions & 9 deletions azure.yaml

This file was deleted.

12 changes: 4 additions & 8 deletions src/Api/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using UserService.Application;
using UserService.Infrastructure;
using UserService.Infrastructure.Data;
using UserService.Api.Services.ConsulConfiguration;
using UserService.Application;
using UserService.Domain.Entities;

WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
var builder = WebApplication.CreateBuilder(args);

var options = new WebApplicationOptions();
var builder1 = WebApplication.CreateEmptyBuilder(options);
// builder.Configuration
// .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
// .AddEnvironmentVariables()
Expand Down Expand Up @@ -49,7 +49,3 @@
app.MapEndpoints();

app.Run();

public abstract partial class Program
{
}
10 changes: 8 additions & 2 deletions src/Api/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"AllowedHosts": "*",
"ConsulAddress": "http://localhost:8500/",
"ExternalConfiguration": {
"Consul": {
"Url": "http://localhost:8500/",
"key": ""
}
},
"ConnectionStrings": {
"MSSqlServer": "Server=(localdb)\\mssqllocaldb;Database=UserServiceDb;Trusted_Connection=True;MultipleActiveResultSets=true"
"MSSqlServer": "Server=(localdb)\\mssqllocaldb;Database=UserServiceDb;Trusted_Connection=True;MultipleActiveResultSets=true",
"MongoDb": ""
},
"Logging": {
"LogLevel": {
Expand Down

0 comments on commit ac9d0aa

Please sign in to comment.