// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Http.Connections.Internal;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.Extensions.DependencyInjection
{
///
/// Extension methods for .
///
public static class ConnectionsDependencyInjectionExtensions
{
///
/// Adds required services for ASP.NET Core Connection Handlers to the specified .
///
/// The to add services to.
/// The same instance of the for chaining.
public static IServiceCollection AddConnections(this IServiceCollection services)
{
services.AddRouting();
services.AddAuthorizationPolicyEvaluator();
services.TryAddSingleton();
services.TryAddSingleton();
return services;
}
}
}