Skip to content

Refactor 重构网络类 #272

Refactor 重构网络类

Refactor 重构网络类 #272

Triggered via pull request July 16, 2025 07:24
Status Success
Total duration 2m 6s
Artifacts 7

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
build-MacOsApp: PCL.Neo.Core/Service/Accounts/OAuthService/AuthCodeMode.cs#L67
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-MacOsApp: PCL.Neo.Core/Service/Accounts/OAuthService/MinecraftInfo.cs#L53
Possible null reference argument for parameter 'Alias' in 'Cape.Cape(string Id, AccountState State, Uri Url, string Alias)'.
build-MacOsApp: PCL.Neo.Core/Service/Accounts/IYggdrasilAuth/YggdrasilAuthService.cs#L359
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-MacOsApp: PCL.Neo.Core/Service/Game/GameLauncherService.cs#L188
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-MacOsApp: PCL.Neo.Core/Models/Minecraft/MetadataFile.cs#L82
Non-nullable property 'Value' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-MacOsApp: PCL.Neo.Core/Service/Accounts/AccountService.cs#L581
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-MacOsApp: PCL.Neo.Core/Service/Accounts/AccountService.cs#L479
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-MacOsApp: PCL.Neo.Core/Service/Game/GameService.cs#L15
Parameter 'javaManager' is unread.
build-MacOsApp: PCL.Neo.Core/Service/Accounts/Storage/YggdrasilAccount.cs#L8
Non-nullable field '_serverUrl' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-AppImage: PCL.Neo.Core/Service/Accounts/OAuthService/AuthCodeMode.cs#L67
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-AppImage: PCL.Neo.Core/Service/Accounts/OAuthService/OAuthData.cs#L161
Non-nullable property 'IdentityToken' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-AppImage: PCL.Neo.Core/Service/Game/GameLauncherService.cs#L188
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-AppImage: PCL.Neo.Core/Service/Audio/AudioService.cs#L115
Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
build-AppImage: PCL.Neo.Core/Service/Accounts/AccountService.cs#L581
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-AppImage: PCL.Neo.Core/Service/Accounts/AccountService.cs#L479
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-AppImage: PCL.Neo.Core/Service/Game/GameService.cs#L15
Parameter 'javaManager' is unread.
build-AppImage: PCL.Neo.Core/Service/Accounts/Storage/YggdrasilAccount.cs#L8
Non-nullable field '_serverUrl' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-AppImage: PCL.Neo.Core/Models/Minecraft/MetadataFile.cs#L82
Non-nullable property 'Value' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-WinExe: PCL.Neo.Core/Service/Accounts/IYggdrasilAuth/YggdrasilAuthService.cs#L359
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-WinExe: PCL.Neo.Core/Service/Accounts/OAuthService/AuthCodeMode.cs#L67
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-WinExe: PCL.Neo.Core/Service/Accounts/OAuthService/MinecraftInfo.cs#L53
Possible null reference argument for parameter 'Alias' in 'Cape.Cape(string Id, AccountState State, Uri Url, string Alias)'.
build-WinExe: PCL.Neo.Core/Service/Accounts/OAuthService/OAuthData.cs#L161
Non-nullable property 'IdentityToken' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build-WinExe: PCL.Neo.Core/Service/Accounts/Storage/YggdrasilAccount.cs#L8
Non-nullable field '_serverUrl' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-WinExe: PCL.Neo.Core/Service/Audio/AudioService.cs#L115
Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
build-WinExe: PCL.Neo.Core/Service/Game/GameLauncherService.cs#L188
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build-WinExe: PCL.Neo.Core/Service/Game/GameService.cs#L15
Parameter 'javaManager' is unread.
build-WinExe: PCL.Neo.Core/Models/Minecraft/MetadataFile.cs#L82
Non-nullable property 'Value' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

Artifacts

Produced during runtime
Name Size Digest
linux.arm64
41.1 MB
sha256:d3fd627decd0ac2245561f2f1346d6172230d75ac7134c62adb5c636cdcb0322
linux.x64
44.4 MB
sha256:5a477ccb5f9eeeb1e26235b89da5cc0e91543e2cbbb823ef7ac993bc7d981e64
osx.mac.arm64
18.1 MB
sha256:951a40ad36669de549161d0cbb939196c3ac186bf72bcc15ca987fc838862ad6
osx.mac.x64
18.9 MB
sha256:a93860f0eaad18d27c4841f3b74a131c99a802c35931143f80698243605cf4e2
win.arm64
43.8 MB
sha256:49e87cf9e5d201ecd097e9afc694f56eaba9a574c35c0d58851e8a93d6b5e02c
win.x64
46.4 MB
sha256:f4217b2c525151309b17c32947cc416972f30e56f9c97441fd898851396dc633
win.x86
43.2 MB
sha256:8b4310db68aa3c4fee5ae7ee758fa0d41351abf5ee345b3c21f7e3ce02d7cd7c