Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何在 ASP.NET Core 控制器中接收“multipart/mixed”
旧系统会向我发送以下内容 POST xml HTTP 1 1 Host localhost 9000 User Agent curl 7 64 1 Accept Content Length 321 Content Type multipa
http
ASPNETCore
multipart
修改 CookieAuthenticationOptions LoginPath OnRedirectToReturnUrl 事件
我的 MVC 6 ASP NET 5 项目中有以下设置 配置方法中的Startup cs app UseCookieAuthentication options gt options AuthenticationScheme Cookie
c
ASPNETMVC
authentication
ASPNETCore
aspnetcoremvc
为什么 Blazor 模板使用工厂来创建 HttpClient 实例
当处置HttpClient 可能会遇到 套接字耗尽 的情况problem https learn microsoft com en us dotnet architecture microservices implement resilie
c
ASPNETCore
Blazor
dotnethttpclient
blazorwebassembly
ASP.NET Core 中的默认日志级别、系统日志级别和 Microsoft 日志级别是什么
默认项目模板具有以下日志记录配置appSettings json Logging IncludeScopes true LogLevel Default Debug System Information Microsoft Informat
aspnet
logging
ASPNETCore
aspnetcoremvc
获取属性与数组中嵌套的值匹配的所有对象
我有以下数据表 id ObjectId value owner testuser date ISODate 2017 03 16T12 45 03 386Z location thuis venue bijna thuis descript
MongoDB
ASPNETCore
mongodbnetdriver
ASP.NET Core 部署到 IIS 错误:不应在已部署的应用程序中启用开发环境
我跟着本文 https weblog west wind com posts 2016 Jun 06 Publishing and Running ASPNET Core Applications with IIS将我的 ASP NET M
IIS
visualstudio2015
ASPNETCore
在asp.net core中将字典发布到web api
我有使用开发的简单 Web apiAsp Net Core我正在尝试使用 HttpClient 发布键值对 我尝试了两种方法 第一种方法 Route api controller action public class Transforma
c
aspnetwebapi
ASPNETCore
coreclr
如何阻止 AWS API Gateway 对二进制响应进行 Base64 编码?
我使用 AWS Toolkit 中的项目模板创建了一个 ASP NET Core 应用程序 我将其部署为 AWS Lambda 并注意到响应中的二进制文件采用了 Base64 编码 我在 AWS API Gateway 中添加了正确的媒体类
ASPNETCore
awslambda
awscloudformation
awsserverless
Swashbuckle IDocumentFilter 实现 - 如何将 ActionDescriptor.MethodInfo 链接到操作
项目 ASP Net Core 2 2 Web API 软件包 Swashbuckle AspNetCore 4 0 1 我正在写一个实现Swashbuckle AspNetCore SwaggerGen IDocumentFilter它在
c
ASPNETCore
swagger
swashbuckle
使用 ASP.Net Core 中间件启动后台任务
我试图在 ASP Net Core 中加载页面时运行异步任务 即 我希望任务在用户路由到页面后立即运行 但要在任务完成之前显示页面 看起来 使用 ASP Net core 您可以使用中间件来执行此类任务 所以我尝试添加以下内容Startup
c
aspnet
ASPNETCore
MiddleWare
Entity Framework Core:获取实体和相关数据中发生的更改
我想要获取实体中发生的更改以及附加到它的相关数据 我知道如何获取一个实体中已更改的属性名称 dbContext Entry entity Properties Where x gt x IsModified Select x gt x Me
c
ASPNETCore
NetCore
EntityFrameworkCore
如何使用反射或其他准确方法获取控制器内当前的 ASP.NET Core 控制器方法名称
我想获取我的当前方法名称ASP NET Core控制器 我尝试通过反射获取方法名称 HttpGet public async Task
c
Reflection
ASPNETCore
aspnetcoremvc
将 asp.net 5 测试放在单独的程序集中
我使用 Microsoft AspNet TestHost 来托管 xunit 集成测试 只要测试与 asp net 5 solution 位于同一项目中 一切都会正常进行 但我想将测试放入单独的程序集中 将它们与解决方案分开 但是 当我尝
unittesting
ASPNETCore
xunit
ASP.NET Core 2.2 中的路由本地化
我正在使用 ASP NET Core 2 2 开发应用程序 并且正在努力解决如何实现路由本地化的问题 例如 根据请求 如果路线中未指定语言 我需要重定向到路线 en products 如果未指定语言 则从接受语言标头获取区域设置 下面的de
c
ASPNETCore
NetCore
将自定义标头值传递给 IdentityServer4 Login
当用户尝试登录时 我尝试将自定义标头值 无 cookie 传递给 IdentityServer4 这是所有设置的方式 自定义身份验证属性 AttributeUsage AttributeTargets Class AttributeTarg
ASPNETMVC
authentication
ASPNETCore
Authorization
IdentityServer4
三层应用程序中 EF Core 的自动迁移
我在 Asp net Mvc Core 中有三层应用程序并使用 EF core 现在我想创建自动迁移 我有 DAL 层 我的上下文可以在这里使用 public class AdminContext DbContext public Admi
c
ASPNETMVC
ASPNETCore
EntityFrameworkCore
为什么从 Dropzone.js 发送时 IFormFile 集合为空?
我正在尝试使用Dropzone js http www dropzonejs com 将 IFormFile 图像 集合发送到以下 ASP NET Core 2 1 Api 控制器操作 HttpPost action public asyn
ASPNETCore
dropzonejs
aspnetcorewebapi
vNext:使用 razor 视图而无需托管的控制台应用程序
我正在创建执行一些文件转换的控制台应用程序 这些转换可以轻松完成 从输入文件创建模型 然后为输出执行 razor 模型 为了在 IDE 中实现此功能 我使用了 Visual Studio 2015 预览版并创建了一个使用 MVC 的 vne
Razor
Console
ASPNETCore
visualstudio2015
使用 Asp.net/C# 使用 USB 令牌对文本文件进行数字签名?
我有一个 USB 令牌 Epass Capricorn 我的要求是使用它来签署文本 平面文件 PS 我相信我必须从代 码中获取 START SIGNATURE START CERTIFICATE 和 SIGNER VERSION 数据并附加
c
aspnet
ASPNETCore
digitalsignature
.Net Core Web Api 异步不重要吗?
我一直在编写我的 Web Api 控制器方法async关键字并一直在使用async一直往下 我最近尝试创建一个方法同步来看看它会如何影响性能 并惊讶地发现它对任何其他 http 请求都没有阻塞影响 举个例子 Route Foo class
c
Asynchronous
ASPNETCore
1
2
3
4
5
6
...100
»