Blog / .NET
102 Posts
winform获取webview内容
string script = @ function getIframeContent() { var iframes = document.getElementsByTagName('iframe'); if (iframes.length 0) { var content = iframes[0].contentWindow.docum
查看全文C#aspnet实现支付宝沙箱支付的项目实践
C#实现支付宝沙箱支付的项目实践 一, 准备沙箱环境 1,登录支付宝,进入 应用列表界面 https://openhome.alipay.com/dev/workspace 2,如下图选择进入沙箱 在这里插入图片描述 进入如下页面: 在这里插入图片描述 1,这里的APPID很有用 2,在这里只测试网页支付,用系统默认的密钥 3,查看公钥有如下界面: 在这里插入图片描述 需要用到的是应用私钥(非JA
查看全文Practices for Rate Limiting in .NET Web API Endpoints
.NET WebApi Interface Rate Limiting Practice Introduction I have always wanted to implement interface rate limiting, but I never got around to it. Then I came across an article that discusses a rate limiting strategy based on the AspNetCoreRateLimit component. This component will not be introduced in detail; for more information, you can visit the official website or the original article link at the bottom of this article. This article only covers the implementation. Steps to Implement Interface Rate Limiting 1. Import Packages 2. Configure Services Since we need to read data from appsettings.json, we need to configure the Program.cs file as follows:
查看全文