1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

ensure that demoted clients are logged out from the webfront

This commit is contained in:
RaidMax
2019-10-07 17:35:37 -05:00
parent 66de7650b1
commit bcb137f8f1
5 changed files with 101 additions and 3 deletions

View File

@ -1,4 +1,5 @@
using SharedLibraryCore.Database.Models;
using SharedLibraryCore.Events;
using System;
using System.Threading;
using System.Threading.Tasks;
@ -7,6 +8,9 @@ namespace SharedLibraryCore
{
public class GameEvent
{
// define what the delagate function looks like
public delegate void OnServerEventEventHandler(object sender, GameEventArgs e);
public enum EventFailReason
{
/// <summary>

View File

@ -5,6 +5,7 @@ using SharedLibraryCore.Configuration;
using System.Reflection;
using SharedLibraryCore.Database.Models;
using System.Threading;
using static SharedLibraryCore.GameEvent;
namespace SharedLibraryCore.Interfaces
{
@ -43,5 +44,6 @@ namespace SharedLibraryCore.Interfaces
string ExternalIPAddress { get; }
CancellationToken CancellationToken { get; }
bool IsRestartRequested { get; }
OnServerEventEventHandler OnServerEvent { get; set; }
}
}