-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreservices PenaltyService
RaidMax edited this page May 21, 2023
·
1 revision
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
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) |
public PenaltyService(IDatabaseContextFactory contextFactory, ApplicationConfiguration appConfig)
Type | Name | Description |
---|---|---|
IDatabaseContextFactory |
contextFactory | |
ApplicationConfiguration |
appConfig |
public virtual async Task<EFPenalty> Create(EFPenalty newEntity)
Type | Name | Description |
---|---|---|
EFPenalty |
newEntity |
public async Task CreatePenaltyIdentifier(int penaltyId, long networkId, int ipv4Address)
Type | Name | Description |
---|---|---|
int |
penaltyId | |
long |
networkId | |
int |
ipv4Address |
public virtual Task<EFPenalty> Delete(EFPenalty entity)
Type | Name | Description |
---|---|---|
EFPenalty |
entity |
public virtual async Task<IList<EFPenalty>> Find(Func<EFPenalty, bool> expression)
Type | Name | Description |
---|---|---|
Func <EFPenalty , bool > |
expression |
public virtual Task<EFPenalty> Get(int entityID)
Type | Name | Description |
---|---|---|
int |
entityID |
public virtual Task<EFPenalty> GetUnique(long entityProperty, object altKey)
Type | Name | Description |
---|---|---|
long |
entityProperty | |
object |
altKey |
public virtual Task<EFPenalty> Update(EFPenalty entity)
Type | Name | Description |
---|---|---|
EFPenalty |
entity |
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 |
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 |
public async Task<List<EFPenalty>> GetActivePenaltiesByIdentifier(Nullable<int> ip, long networkId, Game game)
Type | Name | Description |
---|---|---|
Nullable <int > |
ip | |
long |
networkId | |
Game |
game |
public async Task<List<EFPenalty>> ActivePenaltiesByRecentIdentifiers(int linkId)
Type | Name | Description |
---|---|---|
int |
linkId |
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