protected override void ConfigureEndpoints(IEndpointRouteBuilder endpoints) { endpoints.AddMetricsSignalR(CorsPolicy); }