Базово работает

gRPC на отдельном порту
This commit is contained in:
2026-06-01 18:02:48 +03:00
parent 3af9cb1912
commit 50626c6ac6
38 changed files with 833 additions and 164 deletions

83
.vscode/launch.json vendored
View File

@@ -1,51 +1,34 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/Console/bin/Debug/net10.0/Console.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Console",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md.
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/ApiServer/bin/Debug/net10.0/ApiServer.dll",
"args": [],
"cwd": "${workspaceFolder}/src/ApiServer",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
}
]
}
"version": "0.2.0",
"configurations": [
{
"name": "ApiServer",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build ApiServer",
"program": "${workspaceFolder}/src/ApiServer/bin/Debug/net10.0/ApiServer.dll",
"args": [],
"cwd": "${workspaceFolder}/src/ApiServer",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
{
"name": "Console",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build Console",
"program": "dotnet",
"args": [
"run",
"--no-build",
"--project",
"${workspaceFolder}/src/Console/Console.csproj"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false
}
]
}

58
.vscode/tasks.json vendored
View File

@@ -1,41 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/ApiServer/ApiServer.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/ApiServer/ApiServer.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/src/ApiServer/ApiServer.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
"version": "2.0.0",
"tasks": [
{
"label": "build ApiServer",
"type": "shell",
"command": "dotnet build ${workspaceFolder}/src/ApiServer/ApiServer.csproj",
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "build Console",
"type": "shell",
"command": "dotnet build ${workspaceFolder}/src/Console/Console.csproj",
"group": "build",
"problemMatcher": "$msCompile"
}
]
}