我创建了 3 个独立的项目:Web api 项目、Web MVC 项目和 ASP.NET Core 应用程序。我正在将 IdentityServer4 与 asp.net core 身份一起使用。我有一个项目解决方案id,其中包含TestUsers. 在线上RedirectUris = {"https://localhost:5444/signin-oidc"},我将其重定向到该项目WeatherMVC。所有三个文件上的 launchsettings.json 都是正确的,因此也是RedirectUris正确的。是否有什么操作不正确导致我收到此消息?
weatherapi project:
----startup.cs:
namespace weatherapi
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddAuthentication("Bearer") …Run Code Online (Sandbox Code Playgroud) c# authorization asp.net-identity asp.net-core identityserver4
我有一个 docker-compose.yml 文件,其中包含 elasticsearch 和 kibana。我想在 docker-compose.yml 文件中添加 APM 服务器服务。有没有办法将 apm 服务器配置到 .yml 文件?我正在阅读有关在 docker 上配置 apm 服务器的内容,但这不是我想要的,因为我正在使用 docker-compose 进行此操作。
我的 docker-compose 文件:
version: '3.8'
services:
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
ports:
- 9200:9200
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
networks:
- elastic
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.13.0
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_URL=http://localhost:9200
- xpack.apm.enabled=false
networks:
- elastic
networks:
elastic:
driver: bridge
volumes:
elasticsearch-data:
Run Code Online (Sandbox Code Playgroud)
更新了 …
在 VS 19 上调试时,工具栏上曾经有不同类型的按钮,即开始、停止、步入、跳过等。现在由于某种原因它消失了,当我调试时,我在工具栏上看到的唯一东西是显示继续的播放按钮。当我想做其他选项时,我必须转到调试选项卡。有没有办法恢复那些在调试模式下自动显示在工具栏上的标准调试选项?
我在这里进行调试,但缺少调试选项: