Skip to content

Commit

Permalink
updating to debug from vs code
Browse files Browse the repository at this point in the history
fixing non-docker ports for SignalR to work
  • Loading branch information
ardalis committed Apr 28, 2021
1 parent 4ffecd9 commit 6c17569
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 1 deletion.
45 changes: 45 additions & 0 deletions FrontDesk/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Launch Blazor WebAssembly Front End",
"type": "blazorwasm",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/FrontDesk.Blazor.Host/bin/Debug/net5.0/FrontDesk.Blazor.Host.dll>",
"args": [],
"cwd": "${workspaceFolder}/src/FrontDesk.Blazor.Host",
"stopAtEntry": false,
},
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/FrontDesk.Api/bin/Debug/net5.0/FrontDesk.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/src/FrontDesk.Api",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
42 changes: 42 additions & 0 deletions FrontDesk/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/FrontDesk.Api/FrontDesk.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/FrontDesk.Api/FrontDesk.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/src/FrontDesk.Api/FrontDesk.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
1 change: 1 addition & 0 deletions FrontDesk/src/FrontDesk.Blazor/Pages/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private Task InitSignalR()

hubConnection.On<string>("ReceiveMessage", async (message) =>
{
Logger.LogInformation($"ReceiveMessage: {message}");
if (message.Contains("Client") && message.Contains("updated"))
{
await RefreshClientsAsync();
Expand Down
2 changes: 1 addition & 1 deletion FrontDesk/src/FrontDesk.Blazor/wwwroot/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"baseUrls": {
"apiBase": "https://localhost:5251/",
"webBase": "https://localhost:5151/"
"webBase": "https://localhost:5150/"
},
"Logging": {
"IncludeScopes": false,
Expand Down

0 comments on commit 6c17569

Please sign in to comment.