摘要: //Service namespace WebApplication4.Models { public class Book { public int Id { get; set; } public string Name { get; set; } public string ISBN { get 阅读全文
posted @ 2026-03-21 00:08 FredGrit 阅读(2) 评论(0) 推荐(0)
摘要: //C# Server using System.Net; using System.Net.WebSockets; using System.Text; using System.Text.Json; namespace ConsoleApp7 { public class Program { s 阅读全文
posted @ 2026-03-18 23:59 FredGrit 阅读(2) 评论(0) 推荐(0)
摘要: #Server using System.Net; using System.Net.WebSockets; using System.Text; using System.Text.Json; namespace ConsoleApp7 { public class Program { stati 阅读全文
posted @ 2026-03-18 23:30 FredGrit 阅读(5) 评论(0) 推荐(0)
摘要: namespace ConsoleApp9 { internal class Program { static async Task Main(string[] args) { await PeriodicalTimerDemo(); } static async Task PeriodicalTi 阅读全文
posted @ 2026-03-18 23:01 FredGrit 阅读(3) 评论(0) 推荐(0)
摘要: //Server: using System.Net; using System.Net.WebSockets; using System.Text; using System.Text.Json; namespace ConsoleApp7 { public class Program { sta 阅读全文
posted @ 2026-03-18 22:47 FredGrit 阅读(2) 评论(0) 推荐(0)
摘要: using Microsoft.AspNetCore.Mvc; using WebApplication3.Models; using WebApplication3.Services; namespace WebApplication3.Controllers { [ApiController] 阅读全文
posted @ 2026-03-17 23:08 FredGrit 阅读(1) 评论(0) 推荐(0)
摘要: public class DelCommand : ICommand { private Action<object?>? syncExecute; private readonly Func<object?, Task> asyncExecute; private Predicate<object 阅读全文
posted @ 2026-03-17 22:42 FredGrit 阅读(2) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2026-03-17 21:40 FredGrit 阅读(4) 评论(0) 推荐(0)
摘要: Install-Package Newtonsoft.json public async Task GetServiceDataAsync() { string bookUrl = "https://localhost:7205/api/book"; using (HttpClient hclien 阅读全文
posted @ 2026-03-15 00:42 FredGrit 阅读(3) 评论(0) 推荐(0)
摘要: Install-Package Swashbuckle.AspNetCore namespace WebApplication1.Models { public class Book { public int Id { get; set; } public string Name { get; se 阅读全文
posted @ 2026-03-15 00:01 FredGrit 阅读(6) 评论(0) 推荐(0)