1 iw4madminapplicationmisc RemoteCommandService
RaidMax edited this page 2023-05-20 22:09:21 -05:00

RemoteCommandService Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph IW4MAdmin.Application.Misc
  IW4MAdmin.Application.Misc.RemoteCommandService[[RemoteCommandService]]
  end
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.IRemoteCommandService[[IRemoteCommandService]]
  class SharedLibraryCore.Interfaces.IRemoteCommandService interfaceStyle;
  end
SharedLibraryCore.Interfaces.IRemoteCommandService --> IW4MAdmin.Application.Misc.RemoteCommandService

Members

Methods

Public methods

Returns Name
Task<IEnumerable<CommandResponseInfo>> Execute(int originId, Nullable<int> targetId, string command, IEnumerable<string> arguments, Server server)
Task<(bool Item1, IEnumerable<CommandResponseInfo> Item2)> ExecuteWithResult(int originId, Nullable<int> targetId, string command, IEnumerable<string> arguments, Server server)

Details

Inheritance

Constructors

RemoteCommandService

Source code

public RemoteCommandService(ILogger<RemoteCommandService> logger, ApplicationConfiguration appConfig, ClientService clientService)
Arguments
Type Name Description
ILogger<RemoteCommandService> logger
ApplicationConfiguration appConfig
ClientService clientService

Methods

Execute

Source code

public virtual async Task<IEnumerable<CommandResponseInfo>> Execute(int originId, Nullable<int> targetId, string command, IEnumerable<string> arguments, Server server)
Arguments
Type Name Description
int originId
Nullable<int> targetId
string command
IEnumerable<string> arguments
Server server

ExecuteWithResult

Source code

public virtual async Task<(bool Item1, IEnumerable<CommandResponseInfo> Item2)> ExecuteWithResult(int originId, Nullable<int> targetId, string command, IEnumerable<string> arguments, Server server)
Arguments
Type Name Description
int originId
Nullable<int> targetId
string command
IEnumerable<string> arguments
Server server

Generated with ModularDoc