Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
阻止 Visual Studio 重新加载 swagger UI
我已将 Visual Studio 更新到版本 16 10 2 企业版 现在 当我运行 Asp net Core 5 Web API 时 每次我修改代码中的某些内容时 Visual Studio 都会在后台运行一个任务 然后 chrome
VisualStudio
aspnetcorewebapi
SwaggerUI
在 .Net Core 3.1 中使用 NewtonSoft 将 DataTable 转换为 JSON 字符串时,如何获得不带“\u0022”或“\”等字符的 JSON 字符串[重复]
这个问题在这里已经有答案了 我正在 net core 3 1 中编写一个简单的 API 要将我的 DataTable 转换为 JSON 字符串 我使用 NewtonSoft 库和以下代码 string JSONresult JsonConv
c
json
jsonnet
aspnetcorewebapi
aspnetcore31
如何解决 System.Text.Json.JsonException:在实体框架中检测到可能的对象循环? [复制]
这个问题在这里已经有答案了 我有一个包含表 数据的数据库 因此我使用了数据库优先方法 使用以下命令来构建模型 dotnet ef dbcontext scaffold Server Database MyDb Trusted Connect
c
EntityFrameworkCore
aspnetcorewebapi
net60
将 HttpModule .Net 类库移植到 .Net Core Web API
我正在将项目从 net Web 应用程序迁移到 Net core Web API 我正在 IIS 集成模式下使用 HTTP 模块 它是 net 框架类库 因此 考虑按原样移植到我的新核心应用程序 我将 web config 粘贴到我的新核心
c
NET
NetCore
aspnetcorewebapi
httpmodule
如何正确地将 OData 与 ASP.net Core 集成
我正在尝试使用 OData 和 EntityFramework 创建一个具有 简单 Web api 的新 ASP NET Core 项目 我以前曾将 OData 与旧版本的 ASP NET 一起使用 我已经设置了一个仅具有简单获取功能的控制
c
ASPNETCore
ODATA
aspnetwebapiodata
aspnetcorewebapi
HttpGet 属性的路由名称 asp.net core 2 中基本通用控制器类的名称
我有一个通用控制器 它有几个派生的控制器类 但我不知道如何处理 HttpGet路线名称因为它需要常数 HttpGet id Name should not hard coded here for derived class public v
c
aspnetcoremvc
aspnetcorewebapi
aspnetcorerouting
Outlook 日历 .Net Core Web API GetList(tokenCredential 参数不能为空。(参数 'tokenCredential'))
我有一个与 Outlook 日历集成相关的 API 项目 通过此项目 您可以访问您的 Outlook 帐户 我想在访问日历部分后列出所有事件 我看了你的文字记录 但有些地方我不明白 我怎样才能得到这个列表 这份文件但我不明白 appsett
Outlook
azureactivedirectory
swagger
Authorization
aspnetcorewebapi
如何在asp.net core web API中使用MimeMessage发送带有附件的电子邮件?
我只尝试过简单的文本 但我想发送带有附件的电子邮件 var emailMessage new MimeMessage emailMessage From Add new MailboxAddress Test email protected
ASPNETCore
aspnetcorewebapi
Visual Studio 不断将 IIS Express 添加回我的 launchsettings.json
我试图从 NET Core 启动设置中删除 IIS Express 配置文件 但每次我重新启动该解决方案时 Visual Studio 都会再次将其添加回来 例如 在一个新项目中 我的启动设置如下所示 iisSettings windows
NetCore
iisexpress
aspnetcorewebapi
kestrelhttpserver
在 Windows 窗体应用程序中托管 ASP.NET Core API
背景 我正在开发一个涉及 WinForms 应用程序的项目 客户端希望公开一个仅限本地的 HTTP 服务器 以允许其他应用程序通过 REST API 或类似 API 触发正在运行的 WinForms 应用程序实例上的功能 首选是使用 ASP
c
NET
WinForms
ASPNETCore
aspnetcorewebapi
在 FlulClient 中禁用自动重定向
我在用FlulHttp http tmenier github io Flurl fluent http 我想禁用某些 API 调用的AllowAutoRedirect 我知道如何让 System Net Http HttpClient 不
redirect
dotnethttpclient
aspnetcorewebapi
flurl
ASP.NET Core:是否可以使用HttpClient获取文件并直接返回?
我有一个内部 API 可以获取并返回文件结果 但是 此 API 没有任何身份验证 角色 权限检查的概念 并且无法修改以执行此操作 我想在现有的 ASP NET Core 2 Web API 上创建一个 Web API 端点来进行权限检查 调
c
aspnetcore20
aspnetcorewebapi
MediatR 我何时以及为什么应该使用它? [关闭]
Closed 这个问题需要多问focused help closed questions 目前不接受答案 以前可能有人问过 但我什至在官方网站上也找不到为什么我应该使用 MediatR 以及它解决了哪些问题 是因为我可以在构造函数中传递单个
c
aspnetcorewebapi
architecturalpatterns
隐藏 Web API 响应的属性
我想隐藏Modifiedby Modifieddate and Createddate来自 Web API 响应的属性 我尝试使用 JsonOgnore IgnoreDataMember 但没有工作 ModelMetadataType ty
c
aspnetcorewebapi
如何在asp .net core web api中获取后台服务中的主机URL?
我有一个 Asp Net core Web api 它将运行后台服务来每天安排一些任务并发送一些邮件 在邮件中我需要有 api 的 url 除了控制器之外 还有什么方法可以在后台服务中获取主机 URL 后台服务在 Web 请求的范围之外运行
ASPNETCore
NetCore
aspnetcorewebapi
为什么在基于 Identity Cookie 的身份验证中一段时间后 User.Identity.IsAuthenticated 设置为 false
我正在使用 EF core 在 asp net core 2 0 中开发 API 我已经在中配置了身份cookie身份验证startup cs如下 services ConfigureApplicationCookie options gt
c
cookies
aspnetidentity
aspnetcore20
aspnetcorewebapi
ASP.net core web api:使用 Facebook/Google OAuth 访问令牌进行身份验证
几天来 我一直在尝试通过 Google 和 Facebook 进行 OAuth 身份验证 以便在我的 ASP net core Web api 项目中工作 我目前的状态是 我有一个 ASP net core Web Api 项目 其中需要对
c
angular
authentication
googleoauth
aspnetcorewebapi
FromHeader Asp.NET Core 绑定到默认值
我正在使用以下基本控制器测试 Asp Net core WebApi Route test public class TestController Route mult HttpGet public int Multiply int x i
c
aspnet
Binding
httpheaders
aspnetcorewebapi
获取 .NET Core JSON Body 作为动态对象
我的 ASP NET Core 端点接受 JSON 形式作为其输入 并调用需要动态参数的方法 我试图像这样调用该方法 HttpPost public IActionResult InitializeAction FromBody dynam
ASPNETCore
aspnetcorewebapi
ASP.NET Core Web API:捕获路由错误
我正在尝试捕获 ASP NET Core Web API 项目中的路由错误 具体来说 路由错误是指 在控制器中我只有 GET api values 5 HttpGet id public string Get int id return v
aspnetwebapi
ASPNETCore
aspnetcoremvc
aspnetcorewebapi
«
1
2
3
4
5
6
7
...10
»