33 lines
874 B
C#
33 lines
874 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Register;
|
|
|
|
namespace DOAN.Infrastructure.WebExtensions
|
|
{
|
|
public static class HslCommunicationExtension
|
|
{
|
|
|
|
public static void AddHslCommunication(this IServiceCollection services)
|
|
{
|
|
//if (!HslCommunication.Authorization.SetAuthorizationCode("71d19e25-1fc3-419f-adaa-8c14df37952a"))
|
|
//{
|
|
// Console.WriteLine("HslCommunication激活失败");
|
|
|
|
//}
|
|
if (!Register.Reg.RegLicense())
|
|
{
|
|
Console.WriteLine("HslCommunication激活失败");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("HslCommunication激活成功");
|
|
}
|
|
;
|
|
}
|
|
}
|
|
}
|