-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplication ApplicationManager
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application
IW4MAdmin.Application.ApplicationManager[[ApplicationManager]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IManager[[IManager]]
class SharedLibraryCore.Interfaces.IManager interfaceStyle;
end
SharedLibraryCore.Interfaces.IManager --> IW4MAdmin.Application.ApplicationManager
Type | Name | Methods |
---|---|---|
IList <IEventParser > |
AdditionalEventParsers |
get |
IList <IRConParser > |
AdditionalRConParsers |
get |
IAlertManager |
AlertManager |
get |
CancellationToken |
CancellationToken |
get |
IList <Func <GameEvent , bool >> |
CommandInterceptors |
get, set |
IReadOnlyList <IManagerCommand > |
Commands |
get |
string |
ExternalIPAddress |
get, private set |
IInteractionRegistration |
InteractionRegistration |
get |
bool |
IsInitialized |
get, private set |
bool |
IsRestartRequested |
get, private set |
bool |
IsRunning |
get, private set |
ILogger |
Logger |
get |
IMiddlewareActionHandler |
MiddlewareActionHandler |
get |
IEnumerable <IPlugin > |
Plugins |
get |
ConcurrentDictionary <long , GameEvent > |
ProcessingEvents |
get |
List <Server > |
Servers |
get |
DateTime |
StartTime |
get, private set |
ITokenAuthentication |
TokenAuthenticator |
get |
string |
Version |
get |
Returns | Name |
---|---|
void |
AddAdditionalCommand (IManagerCommand command) |
void |
AddEvent (GameEvent gameEvent) |
Task |
ExecuteEvent (GameEvent newEvent) |
Task <IList <T >> |
ExecuteSharedDatabaseOperation (string operationName) |
EFClient |
FindActiveClient (EFClient client) |
IEventParser |
GenerateDynamicEventParser (string name) |
IRConParser |
GenerateDynamicRConParser (string name) |
IList <EFClient > |
GetActiveClients () |
IConfigurationHandler <ApplicationConfiguration > |
GetApplicationSettings () |
ClientService |
GetClientService () |
IList <IManagerCommand > |
GetCommands () |
ILogger |
GetLogger (long serverId) |
IList <MessageToken > |
GetMessageTokens () |
IPageList |
GetPageList () |
PenaltyService |
GetPenaltyService () |
IList <Server > |
GetServers () |
Task |
Init () |
void |
QueueEvent (CoreEvent coreEvent) |
void |
RegisterSharedDatabaseOperation (Task <IList > operation, string operationName) |
void |
RemoveCommandByName (string commandName) |
Task |
Restart () |
Task |
Start () |
Task |
Stop () |
public ApplicationManager(ILogger<ApplicationManager> logger, IMiddlewareActionHandler actionHandler, IEnumerable<IManagerCommand> commands, ITranslationLookup translationLookup, IConfigurationHandler<CommandConfiguration> commandConfiguration, IConfigurationHandler<ApplicationConfiguration> appConfigHandler, IGameServerInstanceFactory serverInstanceFactory, IEnumerable<IPlugin> plugins, IParserRegexFactory parserRegexFactory, IEnumerable<IRegisterEvent> customParserEvents, ICoreEventHandler coreEventHandler, IScriptCommandFactory scriptCommandFactory, IDatabaseContextFactory contextFactory, IMetaRegistration metaRegistration, IScriptPluginServiceResolver scriptPluginServiceResolver, ClientService clientService, IServiceProvider serviceProvider, ChangeHistoryService changeHistoryService, ApplicationConfiguration appConfig, PenaltyService penaltyService, IAlertManager alertManager, IInteractionRegistration interactionRegistration, IEnumerable<IPluginV2> v2PLugins)
Type | Name | Description |
---|---|---|
ILogger <ApplicationManager > |
logger | |
IMiddlewareActionHandler |
actionHandler | |
IEnumerable <IManagerCommand > |
commands | |
ITranslationLookup |
translationLookup | |
IConfigurationHandler <CommandConfiguration > |
commandConfiguration | |
IConfigurationHandler <ApplicationConfiguration > |
appConfigHandler | |
IGameServerInstanceFactory |
serverInstanceFactory | |
IEnumerable <IPlugin > |
plugins | |
IParserRegexFactory |
parserRegexFactory | |
IEnumerable <IRegisterEvent > |
customParserEvents | |
ICoreEventHandler |
coreEventHandler | |
IScriptCommandFactory |
scriptCommandFactory | |
IDatabaseContextFactory |
contextFactory | |
IMetaRegistration |
metaRegistration | |
IScriptPluginServiceResolver |
scriptPluginServiceResolver | |
ClientService |
clientService | |
IServiceProvider |
serviceProvider | |
ChangeHistoryService |
changeHistoryService | |
ApplicationConfiguration |
appConfig | |
PenaltyService |
penaltyService | |
IAlertManager |
alertManager | |
IInteractionRegistration |
interactionRegistration | |
IEnumerable <IPluginV2 > |
v2PLugins |
public virtual async Task ExecuteEvent(GameEvent newEvent)
Type | Name | Description |
---|---|---|
GameEvent |
newEvent |
public virtual IList<Server> GetServers()
public virtual IList<IManagerCommand> GetCommands()
public virtual async Task Init()
public virtual async Task Start()
public virtual async Task Stop()
public virtual async Task Restart()
public virtual ILogger GetLogger(long serverId)
Type | Name | Description |
---|---|---|
long |
serverId |
public virtual IList<MessageToken> GetMessageTokens()
public virtual IList<EFClient> GetActiveClients()
public virtual EFClient FindActiveClient(EFClient client)
Type | Name | Description |
---|---|---|
EFClient |
client |
public virtual ClientService GetClientService()
public virtual PenaltyService GetPenaltyService()
public virtual IConfigurationHandler<ApplicationConfiguration> GetApplicationSettings()
public virtual void AddEvent(GameEvent gameEvent)
Type | Name | Description |
---|---|---|
GameEvent |
gameEvent |
public virtual void QueueEvent(CoreEvent coreEvent)
Type | Name | Description |
---|---|---|
CoreEvent |
coreEvent |
public virtual IPageList GetPageList()
public virtual IRConParser GenerateDynamicRConParser(string name)
Type | Name | Description |
---|---|---|
string |
name |
public virtual IEventParser GenerateDynamicEventParser(string name)
Type | Name | Description |
---|---|---|
string |
name |
public virtual async Task<IList<T>> ExecuteSharedDatabaseOperation<T>(string operationName)
where T :
Type | Name | Description |
---|---|---|
string |
operationName |
public virtual void RegisterSharedDatabaseOperation(Task<IList> operation, string operationName)
Type | Name | Description |
---|---|---|
Task <IList > |
operation | |
string |
operationName |
public virtual void AddAdditionalCommand(IManagerCommand command)
Type | Name | Description |
---|---|---|
IManagerCommand |
command |
public virtual void RemoveCommandByName(string commandName)
Type | Name | Description |
---|---|---|
string |
commandName |
public List<Server> Servers { get; }
public ILogger Logger { get; }
public virtual bool IsRunning { get; private set; }
public bool IsInitialized { get; private set; }
public DateTime StartTime { get; private set; }
public virtual string Version { get; }
public virtual IList<IRConParser> AdditionalRConParsers { get; }
public virtual IList<IEventParser> AdditionalEventParsers { get; }
public IList<Func<GameEvent, bool>> CommandInterceptors { get; set; }
public virtual ITokenAuthentication TokenAuthenticator { get; }
public virtual CancellationToken CancellationToken { get; }
public virtual string ExternalIPAddress { get; private set; }
public virtual bool IsRestartRequested { get; private set; }
public virtual IMiddlewareActionHandler MiddlewareActionHandler { get; }
public virtual ConcurrentDictionary<long, GameEvent> ProcessingEvents { get; }
public virtual IEnumerable<IPlugin> Plugins { get; }
public virtual IInteractionRegistration InteractionRegistration { get; }
public virtual IReadOnlyList<IManagerCommand> Commands { get; }
public virtual IAlertManager AlertManager { get; }
public event EventHandler<GameEvent> OnGameEventExecuted
Generated with ModularDoc