Class BanService
Allows you to ban IPs or serials
Assembly: SlipeServer.Server.dll
Syntax
Constructors
|
Edit this page
View Source
BanService(IBanRepository, IElementCollection)
Allows you to ban IPs or serials
Declaration
public BanService(IBanRepository banRepository, IElementCollection elementCollection)
Parameters
Methods
|
Edit this page
View Source
AddBan(string?, IPAddress?, DateTime?, string?, string?, string?)
Declaration
public Ban AddBan(string? serial, IPAddress? ipAddress, DateTime? expiryTimeUtc = null, string? reason = null, string? bannedPlayerName = null, string? bannerName = null)
Parameters
Returns
|
Edit this page
View Source
GetBans()
Declaration
public IEnumerable<Ban> GetBans()
Returns
|
Edit this page
View Source
IsIpOrSerialBanned(string?, IPAddress?, out Ban?)
Declaration
public bool IsIpOrSerialBanned(string? serial, IPAddress? ipAddress, out Ban? ban)
Parameters
Returns
|
Edit this page
View Source
RemoveBan(Ban)
Declaration
public void RemoveBan(Ban ban)
Parameters
Type |
Name |
Description |
Ban |
ban |
|
|
Edit this page
View Source
RemoveBan(Guid)
Declaration
public void RemoveBan(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
|
Edit this page
View Source
RemoveBans(string?, IPAddress?)
Declaration
public void RemoveBans(string? serial, IPAddress? ipAddress)
Parameters