using Bootstrap.Admin;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Microsoft.Extensions.DependencyInjection
{
///
///
///
public static class OnlineUsersServicesCollectionExtensions
{
///
///
///
internal const string IPSvrHttpClientName = "IPSvr";
///
///
///
///
///
public static IServiceCollection AddOnlineUsers(this IServiceCollection services)
{
services.TryAddSingleton();
services.AddHttpClient(IPSvrHttpClientName, client =>
{
client.DefaultRequestHeaders.Connection.Add("keep-alive");
});
return services;
}
}
}