32 lines
847 B
C#
32 lines
847 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace xAiApi.DI
|
|
{
|
|
public static class XPushDIExtensions
|
|
{
|
|
/// <summary>
|
|
/// Register XPushProvider Services
|
|
/// </summary>
|
|
/// <param name="services"></param>
|
|
public static void AddXPushHubProvider(
|
|
this IServiceCollection services,
|
|
ServiceLifetime lifeTime = ServiceLifetime.Transient
|
|
)
|
|
{
|
|
AddPushHubProvider(services, lifeTime);
|
|
}
|
|
|
|
//
|
|
#region Private ...
|
|
private static void AddPushHubProvider(
|
|
this IServiceCollection services,
|
|
ServiceLifetime lifeTime = ServiceLifetime.Transient
|
|
)
|
|
{ }
|
|
#endregion
|
|
}
|
|
} |