Skip to content

Commit

Permalink
Add Imageflow.Server.Azure functions that works for /api/ subpath only
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 16, 2025
1 parent aa25374 commit e25903c
Show file tree
Hide file tree
Showing 13 changed files with 1,386 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-azuretools.vscode-azurefunctions",
"ms-dotnettools.csharp"
]
}
13 changes: 8 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{
"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}/tests/Imageflow.Server.Tests/bin/Debug/net7.0/Imageflow.Server.Tests.dll",
"args": [],
"cwd": "${workspaceFolder}/tests/Imageflow.Server.Tests",
// 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"
},
{
"name": "Attach to .NET Functions",
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
}
]
}
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"window.zoomLevel": 1,
"window.zoomPerWindow": true,
"editor.mouseWheelZoom": true,
"terminal.integrated.mouseWheelZoom": true
"terminal.integrated.mouseWheelZoom": true,
"azureFunctions.deploySubpath": "src\\Imageflow.Server.AzureFunctions/bin/Release/net9.0/publish",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~4",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.preDeployTask": "publish (functions)",
"azureFunctions.projectSubpath": "src\\Imageflow.Server.AzureFunctions"
}
76 changes: 76 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,82 @@
"${workspaceFolder}/Imageflow.Server.sln"
],
"problemMatcher": "$msCompile"
},
{
"label": "clean (functions)",
"command": "dotnet",
"args": [
"clean",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
}
},
{
"label": "build (functions)",
"command": "dotnet",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean (functions)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
}
},
{
"label": "clean release (functions)",
"command": "dotnet",
"args": [
"clean",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
}
},
{
"label": "publish (functions)",
"command": "dotnet",
"args": [
"publish",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean release (functions)",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
}
},
{
"type": "func",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions/bin/Debug/net9.0"
},
"command": "host start",
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
]
}
26 changes: 16 additions & 10 deletions Imageflow.Server.sln
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29503.13
# Visual Studio Version 17
VisualStudioVersion = 17.12.35707.178 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A08DA97E-FCD2-4ACD-AC62-413A05BBDB0E}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
CHANGES.md = CHANGES.md
CONFIGURATION.md = CONFIGURATION.md
src\design_scratch.md = src\design_scratch.md
Directory.Build.props = Directory.Build.props
.github\workflows\dockerize_host.yml = .github\workflows\dockerize_host.yml
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
LICENSE.txt = LICENSE.txt
README.md = README.md
src\NugetPackages.targets = src\NugetPackages.targets
Directory.Build.props = Directory.Build.props
CONFIGURATION.md = CONFIGURATION.md
src\NugetPackageDefaults.targets = src\NugetPackageDefaults.targets
src\NugetPackages.targets = src\NugetPackages.targets
src\ProjectDefaults.targets = src\ProjectDefaults.targets
CHANGES.md = CHANGES.md
README.md = README.md
tests\TestDefaults.targets = tests\TestDefaults.targets
src\design_scratch.md = src\design_scratch.md
.github\workflows\dockerize_host.yml = .github\workflows\dockerize_host.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Imazen.Common", "src\Imazen.Common\Imazen.Common.csproj", "{49BDDBEE-3385-4B1D-B7C1-76A893F25C00}"
Expand Down Expand Up @@ -66,6 +66,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imazen.TestingHelpers", "te
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imageflow.Server.LegacyBlob", "tests\Imageflow.Server.LegacyBlob\Imageflow.Server.LegacyBlob.csproj", "{195CAA16-A6A1-49E6-A226-947CEFD4903E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imageflow.Server.AzureFunctions", "src\Imageflow.Server.AzureFunctions\Imageflow.Server.AzureFunctions.csproj", "{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -164,6 +166,10 @@ Global
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Release|Any CPU.Build.0 = Release|Any CPU
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading

0 comments on commit e25903c

Please sign in to comment.