Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
不知道如何注入 LinkGenerator
所以我知道如何设置我的控制器 以便我可以接受注入到控制器中的 LinkGenerator 我不明白的是如何在启动时使用 LinkGenerator 注入控制器 控制器 protected readonly LinkGenerator lin
NetCore
aspnetcorewebapi
Asp.net Core 模型绑定器接受布尔类型的随机整数
鉴于模型具有布尔属性 public class Person public string Name get set public bool IsMale get set 当尝试发布以下有效负载时 name Bob isMale 12345
ASPNETCore
aspnetcorewebapi
modelbinding
为什么当我们创建新的 Web APi 服务时,.NET Core 中的 Web API 的身份验证类型 - 个人用户帐户不可用
为什么无法创建具有个人用户帐户授权类型的 Web API 项目 UPDATE 所有版本号均从 v1 2 更新为 v2 0 请找到ASP NET Core 时间表和路线图 https github com aspnet Home wiki R
ASPNETCore
aspnetwebapi2
aspnetcorewebapi
使用 Angular SPA 应用程序与 IdentityServer4 进行身份验证/授权接收令牌,然后与 Web API 进行对话
我有一个 asp net core Web API 我目前正在使用 Angular 4 应用程序直接调用它 我现在想添加身份验证和授权层 我想通过向我的解决方案添加另一个类型为 ASP NET Core MVC 带个人用户帐户 的项目 严格
angular
ASPNETCore
aspnetidentity
IdentityServer4
aspnetcorewebapi
.NET Core AWS RDS 连接
我正在 Amazon AWS Elastic Beanstalk 上创建一个 NET Core Web API 我正在尝试添加数据库 但他们的添加数据库指南不适用于 Net Corehttp docs aws amazon com elas
c
amazonwebservices
NetCore
amazonrds
aspnetcorewebapi
在 Asp.Net Core Web API 中使用 MassTransit 消息时如何对用户进行身份验证?
我有几个使用 Bearer 身份验证的 Asp Net Core Web APIIdentityServer4 AccessTokenValidation用于内省令牌 验证用户身份并创建声明的中间件 这对于 HTTP 请求来说效果很好 我正
c
authentication
aspnetcorewebapi
masstransit
dotnet core 3.1 中 CORS 响应预检的问题
我面临这个问题 访问 XMLHttpRequest 位于 http localhost 5000 api surpactemp http localhost 5000 api surpactemp 从原点 http 本地主机 4200 ht
c
angular
ASPNETCore
NetCore
aspnetcorewebapi
在 Web API ASP.NET Core 中检查 api 密钥的简单方法
我想简单地检查 Api 密钥 在授权标头中发送 然后再允许某些 Web API 端点受到攻击 为了解决这个问题 我们假设 ApiKey 是12345 我只想在到达特定操作方法之前检查此 Api Key 的值 我无法弄清楚这是否需要自定义 A
如何将事件记录到 ASP.NET Core Web API 中的事件查看器?
我正在尝试登录到托管在 Windows Server 2016 Standard 上的 ASP NET Core 2 1 Web API 中的事件查看器 我的控制器中有这个 private readonly ILogger
ASPNETCore
logging
NetCore
aspnetcorewebapi
如何使用 ASP.NET Core MVC 和 Angular 使用 Identity Server 4 连接到 Web API
我在收到回复后写信在这里发帖 https github com IdentityServer IdentityServer4 issues 1179 issuecomment 304032678 我正在开发一个应用程序 该应用程序具有一个
angular
ASPNETCore
IdentityServer4
aspnetcorewebapi
Angular 2 对预检请求的响应未通过访问控制检查:没有“Access-Control-Allow-Origin”标头
我是 Angular2 的新手 我正在尝试将 POST 方法调用到我的 net core API 它与 Postman 一起工作正常 但是当我从我的 Angular 2 服务调用它时 它会出现错误 这是我的 api service ts i
angular2services
aspnetcorewebapi
如何读取.net core api项目中appsetting.json文件中的多个连接字符串
我有多个连接字符串属性 例如 在 AppSetting json 文件中 connectionstring connection1 datasource1 connection2 datasource2 我想读取控制器或服务文件中的连接字符
c
ASPNETCore
aspnetcorewebapi
将代码从 RestSharp 转换为 HttpClient
有人可以帮我将这个使用 RestSharp 的 ASP Net Core 示例 在我的 Web Api 中使用以使用来自 Auth0 的管理 API 转换为使用 HttpClient 的示例吗 var client new RestClie
c
restsharp
aspnetcorewebapi
aspnetcore11
从 Angular 前端调用 Azure AD 安全 Web API
我目前正在开发一个 Angular 前端 它使用 MSAL 来对用户进行身份验证 该前端应调用 Web API 也托管在 Azure 中 该 API 由 Azure Active Directory 保护 虽然我轻松地设法使用 Angula
Azure
API
authentication
aspnetcorewebapi
azureadmsal
asp.net core 构建错误:“HttpRequestMessageExtensions”
使用 ASPNet Core 1 1 Web API 模板并尝试在 Post 上创建响应 构建项目时出现以下错误 感谢您的帮助 Controllers MessagesController cs 37 28 37 72 错误 CS0433
ASPNETCore
aspnetcorewebapi
aspnetcore11
如何使用 Angular 取消 .Net Core Web API 请求?
我有以下两个应用程序 Angular 6 7 应用程序 Net Core Web API 我正在做GET使用 Angular 向 API 发出请求Http客户端如下所示 this subscription this httpClient g
c
angular
ASPNETCore
aspnetcore20
aspnetcorewebapi
Asp.Net Core Web 应用程序:使用 IExceptionFilter 与自定义中间件进行全局异常处理
Asp Net Core 支持两种方法对 Web 应用程序进行全局异常处理 实现 IExceptionFilter 或创建自定义中间件 其中一种相对于另一种有什么优势吗 我看到的大多数参考文献都是关于创建自定义中间件的 ASP NET 核心
ASPNETCore
aspnetcoremvc
aspnetcorewebapi
错误请求时返回 Json
因此 OK value 返回带有 application json 标头的格式化 json 然而 BadRequest 却没有 如果请求是 application json 即使这是一个错误的请求 响应也不应该像这样吗 HttpPost p
c
ASPNETCore
aspnetcorewebapi
在单个 ASP.NET Core WebAPI 服务中托管多个产品 API
我正在设计一个基于 ASP NET Core 的 Web API 它需要支持我的产品的多个变体 比方说基于许可证或安装的品种 我没有为每种类型的产品提供多种服务 而是考虑使用一个服务来容纳 托管多个端点或 URL 我将在安装时在 appse
c
ASPNETCore
NetCore
aspnetcorewebapi
aspnetcore22
ASP.NET Core - 如何注入 IOptionsMonitor
我怎样才能注射IOptionsMonitor
c
ASPNETCore
aspnetcoremvc
aspnetcorewebapi
«
1
2
3
4
5
6
7
8
...10
»