DannyChi commited on
Commit
33cd1bb
·
verified ·
1 Parent(s): a25d085

Upload 91 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .dockerignore +30 -0
  2. .gitattributes +3 -0
  3. Controllers/WeatherForecastController.cs +33 -0
  4. Dockerfile +32 -0
  5. Program.cs +78 -0
  6. Properties/launchSettings.json +52 -0
  7. WeatherForecast.cs +13 -0
  8. ai_server_docker.csproj +22 -0
  9. ai_server_docker.csproj.user +12 -0
  10. ai_server_docker.http +6 -0
  11. appsettings.Development.json +8 -0
  12. appsettings.json +9 -0
  13. obj/Container/AbsoluteOutputAssemblyPath.cache +1 -0
  14. obj/Container/AdditionalProbingPaths.cache +1 -0
  15. obj/Container/ContainerCreationResult.cache +1 -0
  16. obj/Container/ContainerDevelopmentMode.cache +1 -0
  17. obj/Container/ContainerId.cache +1 -0
  18. obj/Container/ContainerName.cache +1 -0
  19. obj/Container/ContainerOperatingSystemFlavor.cache +1 -0
  20. obj/Container/ContainerRunContext.cache +1 -0
  21. obj/Container/ContainerRuntimeID.cache +1 -0
  22. obj/Container/DebuggeeArguments.cache +0 -0
  23. obj/Container/DebuggeeKillProcessCommand.cache +0 -0
  24. obj/Container/DebuggeeProgram.cache +0 -0
  25. obj/Container/DebuggeeWorkingDirectory.cache +0 -0
  26. obj/Container/DistrolessHelperSupported.cache +1 -0
  27. obj/Container/FastModeProjectMountDirectory.cache +0 -0
  28. obj/Container/ImageBuildContext.cache +1 -0
  29. obj/Container/ImageId.cache +1 -0
  30. obj/Container/LaunchedImageId.cache +1 -0
  31. obj/Container/OperatingSystemName.cache +1 -0
  32. obj/Container/TargetFramework.cache +1 -0
  33. obj/Container/VolumeMappings.cache +1 -0
  34. obj/Container/VolumeMappings2.cache +1 -0
  35. obj/Container/VsDbgScript.cache +0 -0
  36. obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
  37. obj/Debug/net8.0/ApiEndpoints.json +22 -0
  38. obj/Debug/net8.0/ai_server_docker.AssemblyInfo.cs +24 -0
  39. obj/Debug/net8.0/ai_server_docker.AssemblyInfoInputs.cache +1 -0
  40. obj/Debug/net8.0/ai_server_docker.GeneratedMSBuildEditorConfig.editorconfig +19 -0
  41. obj/Debug/net8.0/ai_server_docker.GlobalUsings.g.cs +17 -0
  42. obj/Debug/net8.0/ai_server_docker.MvcApplicationPartsAssemblyInfo.cache +0 -0
  43. obj/Debug/net8.0/ai_server_docker.assets.cache +0 -0
  44. obj/Debug/net8.0/ai_server_docker.csproj.BuildWithSkipAnalyzers +0 -0
  45. obj/Debug/net8.0/ai_server_docker.csproj.CoreCompileInputs.cache +1 -0
  46. obj/Debug/net8.0/ai_server_docker.csproj.FileListAbsolute.txt +27 -0
  47. obj/Debug/net8.0/ai_server_docker.dll +0 -0
  48. obj/Debug/net8.0/ai_server_docker.genruntimeconfig.cache +1 -0
  49. obj/Debug/net8.0/ai_server_docker.pdb +0 -0
  50. obj/Debug/net8.0/apphost.exe +3 -0
.dockerignore ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ **/.classpath
2
+ **/.dockerignore
3
+ **/.env
4
+ **/.git
5
+ **/.gitignore
6
+ **/.project
7
+ **/.settings
8
+ **/.toolstarget
9
+ **/.vs
10
+ **/.vscode
11
+ **/*.*proj.user
12
+ **/*.dbmdl
13
+ **/*.jfm
14
+ **/azds.yaml
15
+ **/bin
16
+ **/charts
17
+ **/docker-compose*
18
+ **/Dockerfile*
19
+ **/node_modules
20
+ **/npm-debug.log
21
+ **/obj
22
+ **/secrets.dev.yaml
23
+ **/values.dev.yaml
24
+ LICENSE
25
+ README.md
26
+ !**/.gitignore
27
+ !.git/HEAD
28
+ !.git/config
29
+ !.git/packed-refs
30
+ !.git/refs/heads/**
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ obj/Debug/net8.0/apphost.exe filter=lfs diff=lfs merge=lfs -text
37
+ obj/Release/net8.0/apphost.exe filter=lfs diff=lfs merge=lfs -text
38
+ wwwroot/index.data filter=lfs diff=lfs merge=lfs -text
Controllers/WeatherForecastController.cs ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using Microsoft.AspNetCore.Mvc;
2
+
3
+ namespace ai_server_docker.Controllers
4
+ {
5
+ [ApiController]
6
+ [Route("[controller]")]
7
+ public class WeatherForecastController : ControllerBase
8
+ {
9
+ private static readonly string[] Summaries = new[]
10
+ {
11
+ "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
12
+ };
13
+
14
+ private readonly ILogger<WeatherForecastController> _logger;
15
+
16
+ public WeatherForecastController(ILogger<WeatherForecastController> logger)
17
+ {
18
+ _logger = logger;
19
+ }
20
+
21
+ [HttpGet]
22
+ public IEnumerable<WeatherForecast> Get()
23
+ {
24
+ return Enumerable.Range(1, 5).Select(index => new WeatherForecast
25
+ {
26
+ Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
27
+ TemperatureC = Random.Shared.Next(-20, 55),
28
+ Summary = Summaries[Random.Shared.Next(Summaries.Length)]
29
+ })
30
+ .ToArray();
31
+ }
32
+ }
33
+ }
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 請參閱 https://aka.ms/customizecontainer 了解如何自訂您的偵錯容器,以及 Visual Studio 如何使用此 Dockerfile 來組建您的映像,以加快偵錯速度。
2
+
3
+ # 此階段用於以快速模式從 VS 執行時 (偵錯設定的預設值)
4
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
5
+
6
+ USER app
7
+ WORKDIR /app
8
+ EXPOSE 7860
9
+
10
+
11
+
12
+
13
+ # 此階段是用來組建服務專案
14
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
15
+ ARG BUILD_CONFIGURATION=Release
16
+ WORKDIR /src
17
+ COPY ["ai_server_docker.csproj", "."]
18
+ RUN dotnet restore "./ai_server_docker.csproj"
19
+ COPY . .
20
+ WORKDIR "/src/."
21
+ RUN dotnet build "./ai_server_docker.csproj" -c $BUILD_CONFIGURATION -o /app/build
22
+
23
+ # 此階段可用來發佈要複製到最終階段的服務專案
24
+ FROM build AS publish
25
+ ARG BUILD_CONFIGURATION=Release
26
+ RUN dotnet publish "./ai_server_docker.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
27
+
28
+ # 此階段用於生產環境,或以一般模式從 VS 執行時 (未使用偵錯設定時的預設值)
29
+ FROM base AS final
30
+ WORKDIR /app
31
+ COPY --from=publish /app/publish .
32
+ ENTRYPOINT ["dotnet", "ai_server_docker.dll"]
Program.cs ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using Microsoft.AspNetCore.StaticFiles;
2
+
3
+ var builder = WebApplication.CreateBuilder(args);
4
+
5
+ // �K�[ CORS ����
6
+ builder.Services.AddCors(options =>
7
+ {
8
+ options.AddPolicy("AllowAll",
9
+ builder =>
10
+ {
11
+ builder.AllowAnyOrigin()
12
+ .AllowAnyMethod()
13
+ .AllowAnyHeader();
14
+ });
15
+ });
16
+
17
+ // �K�[ HttpClient �u�t
18
+ builder.Services.AddHttpClient();
19
+
20
+ // �W�[ HttpClient �u�t�A�ðt�m�R�W�� HttpClient
21
+ builder.Services.AddHttpClient("VideoProcessingClient")
22
+ .SetHandlerLifetime(TimeSpan.FromMinutes(5)) // �i��G�]�m�B�z�{�Ǫ��ͩR�g��
23
+ .ConfigurePrimaryHttpMessageHandler(() =>
24
+ {
25
+ // �i��G�t�m�۩w�q�� HttpMessageHandler�A�Ҧp Proxy�BSSL ��
26
+ return new HttpClientHandler();
27
+ })
28
+ .ConfigureHttpClient(client =>
29
+ {
30
+ client.Timeout = TimeSpan.FromMinutes(10); // �]�m�W�ɬ� 10 ����
31
+ });
32
+
33
+ // Add services to the container.
34
+ builder.Services.AddControllers();
35
+
36
+ // �]�w�̤j�ШD��j�p�]�Ҧp�A1 GB�^
37
+ builder.WebHost.ConfigureKestrel(options =>
38
+ {
39
+ options.Limits.MaxRequestBodySize = 1073741824; // 1 GB
40
+ options.ListenAnyIP(7860); // �u�O�d HTTP �Y�i
41
+ //options.ListenAnyIP(7860, listenOptions =>
42
+ //{
43
+ // listenOptions.UseHttps(); // ��ť HTTPS 8081 �ݤf
44
+ //});
45
+ });
46
+
47
+ var app = builder.Build();
48
+
49
+ // �ϥ� CORS
50
+ app.UseCors("AllowAll");
51
+
52
+ // �]�w `.onnx` �� MIME ����
53
+ var provider = new FileExtensionContentTypeProvider();
54
+ //provider.Mappings[".onnx"] = "application/octet-stream";
55
+ provider.Mappings[".wasm"] = "application/wasm"; // �� WebAssembly �K�[ MIME ����
56
+ provider.Mappings[".data"] = "application/data"; // �� WebAssembly �K�[ MIME ����
57
+
58
+ // �ϥ� DefaultFiles ������M�� index.html
59
+ app.UseDefaultFiles();
60
+
61
+ // �����R�A���A�èϥΦۭq�� MIME �������Ѫ̻P���Y
62
+ app.UseStaticFiles(new StaticFileOptions
63
+ {
64
+ ContentTypeProvider = provider,
65
+ OnPrepareResponse = ctx =>
66
+ {
67
+ Console.WriteLine($"Serving file: {ctx.File.PhysicalPath}");
68
+ // �[�J COOP �P COEP ���Y
69
+ ctx.Context.Response.Headers["Cross-Origin-Opener-Policy"] = "same-origin";
70
+ ctx.Context.Response.Headers["Cross-Origin-Embedder-Policy"] = "require-corp";
71
+ }
72
+ });
73
+
74
+ // Configure the HTTP request pipeline.
75
+ app.UseHttpsRedirection();
76
+ app.UseAuthorization();
77
+ app.MapControllers();
78
+ app.Run();
Properties/launchSettings.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "profiles": {
3
+ "http": {
4
+ "commandName": "Project",
5
+ "launchBrowser": true,
6
+ "launchUrl": "weatherforecast",
7
+ "environmentVariables": {
8
+ "ASPNETCORE_ENVIRONMENT": "Development"
9
+ },
10
+ "dotnetRunMessages": true,
11
+ "applicationUrl": "http://localhost:5186"
12
+ },
13
+ "https": {
14
+ "commandName": "Project",
15
+ "launchBrowser": true,
16
+ "launchUrl": "weatherforecast",
17
+ "environmentVariables": {
18
+ "ASPNETCORE_ENVIRONMENT": "Development"
19
+ },
20
+ "dotnetRunMessages": true,
21
+ "applicationUrl": "https://localhost:7043;http://localhost:5186"
22
+ },
23
+ "IIS Express": {
24
+ "commandName": "IISExpress",
25
+ "launchBrowser": true,
26
+ "launchUrl": "weatherforecast",
27
+ "environmentVariables": {
28
+ "ASPNETCORE_ENVIRONMENT": "Development"
29
+ }
30
+ },
31
+ "Container (Dockerfile)": {
32
+ "commandName": "Docker",
33
+ "launchBrowser": true,
34
+ "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
35
+ "environmentVariables": {
36
+ //"ASPNETCORE_HTTPS_PORTS": "8080",
37
+ "ASPNETCORE_HTTP_PORTS": "7860"
38
+ },
39
+ "publishAllPorts": true,
40
+ "useSSL": true
41
+ }
42
+ },
43
+ "$schema": "http://json.schemastore.org/launchsettings.json",
44
+ "iisSettings": {
45
+ "windowsAuthentication": false,
46
+ "anonymousAuthentication": true,
47
+ "iisExpress": {
48
+ "applicationUrl": "http://localhost:39907",
49
+ "sslPort": 44365
50
+ }
51
+ }
52
+ }
WeatherForecast.cs ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace ai_server_docker
2
+ {
3
+ public class WeatherForecast
4
+ {
5
+ public DateOnly Date { get; set; }
6
+
7
+ public int TemperatureC { get; set; }
8
+
9
+ public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
10
+
11
+ public string? Summary { get; set; }
12
+ }
13
+ }
ai_server_docker.csproj ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <Project Sdk="Microsoft.NET.Sdk.Web">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>net8.0</TargetFramework>
5
+ <Nullable>enable</Nullable>
6
+ <ImplicitUsings>enable</ImplicitUsings>
7
+ <UserSecretsId>fc82dcaf-3161-4441-9e5d-92fdf63b2d3d</UserSecretsId>
8
+ <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
9
+ <DockerfileContext>.</DockerfileContext>
10
+ </PropertyGroup>
11
+
12
+ <ItemGroup>
13
+ <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
14
+ </ItemGroup>
15
+
16
+ <ItemGroup>
17
+ <Content Update="wwwroot\isnet_infer.onnx">
18
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
19
+ </Content>
20
+ </ItemGroup>
21
+
22
+ </Project>
ai_server_docker.csproj.user ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <ActiveDebugProfile>Container (Dockerfile)</ActiveDebugProfile>
5
+ </PropertyGroup>
6
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
7
+ <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
8
+ </PropertyGroup>
9
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
10
+ <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
11
+ </PropertyGroup>
12
+ </Project>
ai_server_docker.http ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ @ai_server_docker_HostAddress = http://localhost:5186
2
+
3
+ GET {{ai_server_docker_HostAddress}}/weatherforecast/
4
+ Accept: application/json
5
+
6
+ ###
appsettings.Development.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Logging": {
3
+ "LogLevel": {
4
+ "Default": "Information",
5
+ "Microsoft.AspNetCore": "Warning"
6
+ }
7
+ }
8
+ }
appsettings.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Logging": {
3
+ "LogLevel": {
4
+ "Default": "Information",
5
+ "Microsoft.AspNetCore": "Warning"
6
+ }
7
+ },
8
+ "AllowedHosts": "*"
9
+ }
obj/Container/AbsoluteOutputAssemblyPath.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ ai_server_docker.dll
obj/Container/AdditionalProbingPaths.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ --additionalProbingPath /.nuget/fallbackpackages
obj/Container/ContainerCreationResult.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ Skipped
obj/Container/ContainerDevelopmentMode.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ Regular
obj/Container/ContainerId.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ 0149c7d59cdeae51960395bae0362de5d944888b223a588bf00f66d66851b82b
obj/Container/ContainerName.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ ai_server_docker
obj/Container/ContainerOperatingSystemFlavor.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ Unknown
obj/Container/ContainerRunContext.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ MpLw22LMYG9hOsG3Jvs9q6Vhq3B0xYpwTzWCkXZAL7U=
obj/Container/ContainerRuntimeID.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ linux-x64
obj/Container/DebuggeeArguments.cache ADDED
File without changes
obj/Container/DebuggeeKillProcessCommand.cache ADDED
File without changes
obj/Container/DebuggeeProgram.cache ADDED
File without changes
obj/Container/DebuggeeWorkingDirectory.cache ADDED
File without changes
obj/Container/DistrolessHelperSupported.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ True
obj/Container/FastModeProjectMountDirectory.cache ADDED
File without changes
obj/Container/ImageBuildContext.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ 2Cbt+ikcLQxT8PpUojiVMdLbvVBMPKPmAC8eg4xWYc8=
obj/Container/ImageId.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ sha256:f2064e067627b07b7efe239c02c02d6779277d22335688e17f57450dca824409
obj/Container/LaunchedImageId.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ sha256:f2064e067627b07b7efe239c02c02d6779277d22335688e17f57450dca824409
obj/Container/OperatingSystemName.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ Linux
obj/Container/TargetFramework.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ DotNetCore
obj/Container/VolumeMappings.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ {"C:\\Users\\chris\\vsdbg\\vs2017u5":"/remote_debugger","C:\\Users\\chris\\AppData\\Roaming\\Microsoft\\UserSecrets":"/home/app/.microsoft/usersecrets","C:\\Users\\chris\\AppData\\Roaming\\ASP.NET\\Https":"/home/app/.aspnet/https","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\linux-x64\\net8.0":"/VSTools","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\HotReload":"/HotReloadAgent"}
obj/Container/VolumeMappings2.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"SourcePath":"C:\\Users\\chris\\vsdbg\\vs2017u5","TargetPath":"/remote_debugger","ReadOnly":false},{"SourcePath":"C:\\Users\\chris\\AppData\\Roaming\\Microsoft\\UserSecrets","TargetPath":"/root/.microsoft/usersecrets","ReadOnly":true},{"SourcePath":"C:\\Users\\chris\\AppData\\Roaming\\Microsoft\\UserSecrets","TargetPath":"/home/app/.microsoft/usersecrets","ReadOnly":true},{"SourcePath":"C:\\Users\\chris\\AppData\\Roaming\\ASP.NET\\Https","TargetPath":"/root/.aspnet/https","ReadOnly":true},{"SourcePath":"C:\\Users\\chris\\AppData\\Roaming\\ASP.NET\\Https","TargetPath":"/home/app/.aspnet/https","ReadOnly":true},{"SourcePath":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\linux-x64\\net8.0","TargetPath":"/VSTools","ReadOnly":true},{"SourcePath":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\HotReload","TargetPath":"/HotReloadAgent","ReadOnly":true}]
obj/Container/VsDbgScript.cache ADDED
File without changes
obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ // <autogenerated />
2
+ using System;
3
+ using System.Reflection;
4
+ [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
obj/Debug/net8.0/ApiEndpoints.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "ContainingType": "ai_server_docker.Controllers.WeatherForecastController",
4
+ "Method": "Get",
5
+ "RelativePath": "WeatherForecast",
6
+ "HttpMethod": "GET",
7
+ "IsController": true,
8
+ "Order": 0,
9
+ "Parameters": [],
10
+ "ReturnTypes": [
11
+ {
12
+ "Type": "System.Collections.Generic.IEnumerable\u00601[[ai_server_docker.WeatherForecast, ai_server_docker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]",
13
+ "MediaTypes": [
14
+ "text/plain",
15
+ "application/json",
16
+ "text/json"
17
+ ],
18
+ "StatusCode": 200
19
+ }
20
+ ]
21
+ }
22
+ ]
obj/Debug/net8.0/ai_server_docker.AssemblyInfo.cs ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // 這段程式碼是由工具產生的。
4
+ // 執行階段版本:4.0.30319.42000
5
+ //
6
+ // 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+ // 變更將會遺失。
8
+ // </auto-generated>
9
+ //------------------------------------------------------------------------------
10
+
11
+ using System;
12
+ using System.Reflection;
13
+
14
+ [assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("fc82dcaf-3161-4441-9e5d-92fdf63b2d3d")]
15
+ [assembly: System.Reflection.AssemblyCompanyAttribute("ai_server_docker")]
16
+ [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
17
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19
+ [assembly: System.Reflection.AssemblyProductAttribute("ai_server_docker")]
20
+ [assembly: System.Reflection.AssemblyTitleAttribute("ai_server_docker")]
21
+ [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22
+
23
+ // 由 MSBuild WriteCodeFragment 類別產生。
24
+
obj/Debug/net8.0/ai_server_docker.AssemblyInfoInputs.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ afa12d56df3763e4625c96877ddec63db0e9d8a99d351868965a0ee60ed338ca
obj/Debug/net8.0/ai_server_docker.GeneratedMSBuildEditorConfig.editorconfig ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ is_global = true
2
+ build_property.TargetFramework = net8.0
3
+ build_property.TargetPlatformMinVersion =
4
+ build_property.UsingMicrosoftNETSdkWeb = true
5
+ build_property.ProjectTypeGuids =
6
+ build_property.InvariantGlobalization =
7
+ build_property.PlatformNeutralAssembly =
8
+ build_property.EnforceExtendedAnalyzerRules =
9
+ build_property._SupportedPlatformList = Linux,macOS,Windows
10
+ build_property.RootNamespace = ai_server_docker
11
+ build_property.RootNamespace = ai_server_docker
12
+ build_property.ProjectDir = C:\Users\chris\source\repos\ai_server_docker\
13
+ build_property.EnableComHosting =
14
+ build_property.EnableGeneratedComInterfaceComImportInterop =
15
+ build_property.RazorLangVersion = 8.0
16
+ build_property.SupportLocalizedComponentNames =
17
+ build_property.GenerateRazorMetadataSourceChecksumAttributes =
18
+ build_property.MSBuildProjectDirectory = C:\Users\chris\source\repos\ai_server_docker
19
+ build_property._RazorSourceGeneratorDebug =
obj/Debug/net8.0/ai_server_docker.GlobalUsings.g.cs ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // <auto-generated/>
2
+ global using global::Microsoft.AspNetCore.Builder;
3
+ global using global::Microsoft.AspNetCore.Hosting;
4
+ global using global::Microsoft.AspNetCore.Http;
5
+ global using global::Microsoft.AspNetCore.Routing;
6
+ global using global::Microsoft.Extensions.Configuration;
7
+ global using global::Microsoft.Extensions.DependencyInjection;
8
+ global using global::Microsoft.Extensions.Hosting;
9
+ global using global::Microsoft.Extensions.Logging;
10
+ global using global::System;
11
+ global using global::System.Collections.Generic;
12
+ global using global::System.IO;
13
+ global using global::System.Linq;
14
+ global using global::System.Net.Http;
15
+ global using global::System.Net.Http.Json;
16
+ global using global::System.Threading;
17
+ global using global::System.Threading.Tasks;
obj/Debug/net8.0/ai_server_docker.MvcApplicationPartsAssemblyInfo.cache ADDED
File without changes
obj/Debug/net8.0/ai_server_docker.assets.cache ADDED
Binary file (526 Bytes). View file
 
obj/Debug/net8.0/ai_server_docker.csproj.BuildWithSkipAnalyzers ADDED
File without changes
obj/Debug/net8.0/ai_server_docker.csproj.CoreCompileInputs.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ cec7500a6d57070cae46a71071764d9a78c696079b32aea4b0a01f80a33d67b0
obj/Debug/net8.0/ai_server_docker.csproj.FileListAbsolute.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\appsettings.Development.json
2
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\appsettings.json
3
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.staticwebassets.runtime.json
4
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.exe
5
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.deps.json
6
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.runtimeconfig.json
7
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.dll
8
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\ai_server_docker.pdb
9
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.GeneratedMSBuildEditorConfig.editorconfig
10
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.AssemblyInfoInputs.cache
11
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.AssemblyInfo.cs
12
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.csproj.CoreCompileInputs.cache
13
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.MvcApplicationPartsAssemblyInfo.cache
14
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets.build.json
15
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets.development.json
16
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets\msbuild.ai_server_docker.Microsoft.AspNetCore.StaticWebAssets.props
17
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets\msbuild.build.ai_server_docker.props
18
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets\msbuild.buildMultiTargeting.ai_server_docker.props
19
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets\msbuild.buildTransitive.ai_server_docker.props
20
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\staticwebassets.pack.json
21
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\scopedcss\bundle\ai_server_docker.styles.css
22
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.dll
23
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\refint\ai_server_docker.dll
24
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.pdb
25
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ai_server_docker.genruntimeconfig.cache
26
+ C:\Users\chris\source\repos\ai_server_docker\obj\Debug\net8.0\ref\ai_server_docker.dll
27
+ C:\Users\chris\source\repos\ai_server_docker\bin\Debug\net8.0\wwwroot\isnet_infer.onnx
obj/Debug/net8.0/ai_server_docker.dll ADDED
Binary file (11.8 kB). View file
 
obj/Debug/net8.0/ai_server_docker.genruntimeconfig.cache ADDED
@@ -0,0 +1 @@
 
 
1
+ 9616bc4709b745e4c11606381312c206cd6767e9ba72c982416f4255dc7fd245
obj/Debug/net8.0/ai_server_docker.pdb ADDED
Binary file (21.5 kB). View file
 
obj/Debug/net8.0/apphost.exe ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ea5a8736e7cbd36e0d08504bdf85211d732168c4491e9411516223a99e877c0
3
+ size 138752