Skip to content

sharedlibrarycoreservices PenaltyService

RaidMax edited this page May 21, 2023 · 1 revision

PenaltyService Public class

Diagram

  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

Members

Methods

Public methods

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)

Details

Inheritance

Constructors

PenaltyService

Source code

public PenaltyService(IDatabaseContextFactory contextFactory, ApplicationConfiguration appConfig)
Arguments
Type Name Description
IDatabaseContextFactory contextFactory
ApplicationConfiguration appConfig

Methods

Create

Source code

public virtual async Task<EFPenalty> Create(EFPenalty newEntity)
Arguments
Type Name Description
EFPenalty newEntity

CreatePenaltyIdentifier

Source code

public async Task CreatePenaltyIdentifier(int penaltyId, long networkId, int ipv4Address)
Arguments
Type Name Description
int penaltyId
long networkId
int ipv4Address

Delete

Source code

public virtual Task<EFPenalty> Delete(EFPenalty entity)
Arguments
Type Name Description
EFPenalty entity

Find

Source code

public virtual async Task<IList<EFPenalty>> Find(Func<EFPenalty, bool> expression)
Arguments
Type Name Description
Func<EFPenalty, bool> expression

Get

Source code

public virtual Task<EFPenalty> Get(int entityID)
Arguments
Type Name Description
int entityID

GetUnique

Source code

public virtual Task<EFPenalty> GetUnique(long entityProperty, object altKey)
Arguments
Type Name Description
long entityProperty
object altKey

Update

Source code

public virtual Task<EFPenalty> Update(EFPenalty entity)
Arguments
Type Name Description
EFPenalty entity

GetRecentPenalties

Source code

public async Task<IList<PenaltyInfo>> GetRecentPenalties(int count, int offset, PenaltyType showOnly, bool ignoreAutomated)
Arguments
Type Name Description
int count
int offset
PenaltyType showOnly
bool ignoreAutomated

GetActivePenaltiesAsync

Source code

public async Task<List<EFPenalty>> GetActivePenaltiesAsync(int linkId, int currentAliasId, long networkId, Game game, Nullable<int> ip)
Arguments
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)
Arguments
Type Name Description
Nullable<int> ip
long networkId
Game game

ActivePenaltiesByRecentIdentifiers

Source code

public async Task<List<EFPenalty>> ActivePenaltiesByRecentIdentifiers(int linkId)
Arguments
Type Name Description
int linkId

RemoveActivePenalties

Source code

public virtual async Task RemoveActivePenalties(int aliasLinkId, long networkId, Game game, Nullable<int> ipAddress)
Arguments
Type Name Description
int aliasLinkId
long networkId
Game game
Nullable<int> ipAddress

Generated with ModularDoc

Clone this wiki locally