RefreshTokenDestroyed 콜백 명칭 수정, LicenseCheckInterval 최솟값 버그 수정 및 불필요 using 정리
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using FluentScheduler;
|
||||
using System.ComponentModel;
|
||||
using System.Net.Http;
|
||||
using System.Net.NetworkInformation;
|
||||
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
@@ -181,7 +179,7 @@ namespace BaronSoftware.SSO
|
||||
{
|
||||
StopLicenseInterval();
|
||||
await SignOutAsync();
|
||||
option.ExpiredToken?.Invoke();
|
||||
option.RefreshTokenDestroyed?.Invoke();
|
||||
}
|
||||
}, run => run.Every(option.LicenseCheckInterval).Seconds()
|
||||
);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Globalization;
|
||||
using System.Globalization;
|
||||
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
@@ -62,13 +61,14 @@ namespace BaronSoftware.SSO
|
||||
get => licenseCheckInterval;
|
||||
set
|
||||
{
|
||||
if (value < 15)
|
||||
licenseCheckInterval = 15;
|
||||
licenseCheckInterval = value;
|
||||
if (value < 30)
|
||||
licenseCheckInterval = 30;
|
||||
else
|
||||
licenseCheckInterval = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public Action ExpiredToken { get; set; }
|
||||
public Action RefreshTokenDestroyed { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWPF>true</UseWPF>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaronSoftware.SSO
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
public class InvalidUserException : Exception
|
||||
{
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaronSoftware.SSO
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
public class UserJsonParsingException : Exception
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.IO;
|
||||
|
||||
namespace BaronSoftware.SSO
|
||||
{
|
||||
internal static class GlobalConfigs
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Printing;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
|
||||
Reference in New Issue
Block a user