23 lines
610 B
C#
23 lines
610 B
C#
|
using Bootstrap.Admin;
|
|||
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|||
|
|
|||
|
namespace Microsoft.Extensions.DependencyInjection
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
public static class OnlineUsersServicesCollectionExtensions
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
/// <param name="services"></param>
|
|||
|
/// <returns></returns>
|
|||
|
public static IServiceCollection AddOnlineUsers(this IServiceCollection services)
|
|||
|
{
|
|||
|
services.TryAddSingleton<IOnlineUsers, DefaultOnlineUsers>();
|
|||
|
return services;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|