PenaltyService Public class
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Services
SharedLibraryCore.Services.PenaltyService[[PenaltyService]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IEntityService_1[[IEntityService< T >]]
class SharedLibraryCore.Interfaces.IEntityService_1 interfaceStyle;
end
SharedLibraryCore.Interfaces.IEntityService_1 --> SharedLibraryCore.Services.PenaltyService
Loading
Returns |
Name |
Task <List <EFPenalty >> |
ActivePenaltiesByRecentIdentifiers (int linkId) |
Task <EFPenalty > |
Create (EFPenalty newEntity) |
Task |
CreatePenaltyIdentifier (int penaltyId, long networkId, int ipv4Address) |
Task <EFPenalty > |
Delete (EFPenalty entity) |
Task <IList <EFPenalty >> |
Find (Func <EFPenalty , bool > expression) |
Task <EFPenalty > |
Get (int entityID) |
Task <List <EFPenalty >> |
GetActivePenaltiesAsync (int linkId, int currentAliasId, long networkId, Game game, Nullable <int > ip) |
Task <List <EFPenalty >> |
GetActivePenaltiesByIdentifier (Nullable <int > ip, long networkId, Game game) |
Task <IList <PenaltyInfo >> |
GetRecentPenalties (int count, int offset, PenaltyType showOnly, bool ignoreAutomated) |
Task <EFPenalty > |
GetUnique (long entityProperty, object altKey) |
Task |
RemoveActivePenalties (int aliasLinkId, long networkId, Game game, Nullable <int > ipAddress) |
Task <EFPenalty > |
Update (EFPenalty entity) |
Source code
public PenaltyService(IDatabaseContextFactory contextFactory, ApplicationConfiguration appConfig)
Source code
public virtual async Task<EFPenalty> Create(EFPenalty newEntity)
Source code
public async Task CreatePenaltyIdentifier(int penaltyId, long networkId, int ipv4Address)
Type |
Name |
Description |
int |
penaltyId |
|
long |
networkId |
|
int |
ipv4Address |
|
Source code
public virtual Task<EFPenalty> Delete(EFPenalty entity)
Source code
public virtual async Task<IList<EFPenalty>> Find(Func<EFPenalty, bool> expression)
Type |
Name |
Description |
Func <EFPenalty , bool > |
expression |
|
Source code
public virtual Task<EFPenalty> Get(int entityID)
Type |
Name |
Description |
int |
entityID |
|
Source code
public virtual Task<EFPenalty> GetUnique(long entityProperty, object altKey)
Type |
Name |
Description |
long |
entityProperty |
|
object |
altKey |
|
Source code
public virtual Task<EFPenalty> Update(EFPenalty entity)
Source code
public async Task<IList<PenaltyInfo>> GetRecentPenalties(int count, int offset, PenaltyType showOnly, bool ignoreAutomated)
Type |
Name |
Description |
int |
count |
|
int |
offset |
|
PenaltyType |
showOnly |
|
bool |
ignoreAutomated |
|
Source code
public async Task<List<EFPenalty>> GetActivePenaltiesAsync(int linkId, int currentAliasId, long networkId, Game game, Nullable<int> ip)
Type |
Name |
Description |
int |
linkId |
|
int |
currentAliasId |
|
long |
networkId |
|
Game |
game |
|
Nullable <int > |
ip |
|
GetActivePenaltiesByIdentifier
public async Task<List<EFPenalty>> GetActivePenaltiesByIdentifier(Nullable<int> ip, long networkId, Game game)
Type |
Name |
Description |
Nullable <int > |
ip |
|
long |
networkId |
|
Game |
game |
|
ActivePenaltiesByRecentIdentifiers
Source code
public async Task<List<EFPenalty>> ActivePenaltiesByRecentIdentifiers(int linkId)
Type |
Name |
Description |
int |
linkId |
|
Source code
public virtual async Task RemoveActivePenalties(int aliasLinkId, long networkId, Game game, Nullable<int> ipAddress)
Type |
Name |
Description |
int |
aliasLinkId |
|
long |
networkId |
|
Game |
game |
|
Nullable <int > |
ipAddress |
|
Generated with ModularDoc