C# Class Aurora.Services.WebAPIConnector

Inheritance: IAuroraDataPlugin, IWebAPIConnector
Afficher le fichier Open project: aurora-sim/Aurora-WebAPI

Méthodes publiques

Méthode Description
AllowAPICall ( UUID user, string method ) : bool
ChangeRateLimit ( UUID user, string method, uint rate ) : bool
ClearLog ( bool staleOnly ) : bool
GetAccessToken ( UUID user ) : UUID
GetNewAccessToken ( UUID user ) : UUID
GetRateLimit ( UUID user, string method ) : uint?
GetUsageRate ( UUID user, string method ) : uint
Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore simBase, string defaultConnectionString ) : void
LogAPICall ( UUID user, string method ) : bool
RateLimitExceed ( UUID user, string method ) : bool
ResetAPIAccess ( UUID user ) : bool
RevokeAPIAccess ( UUID user ) : bool

Private Methods

Méthode Description
Info ( object message ) : void
Warn ( object message ) : void
handleConfig ( IConfigSource m_config, string defaultConnectionString ) : bool

Method Details

AllowAPICall() public méthode

public AllowAPICall ( UUID user, string method ) : bool
user UUID
method string
Résultat bool

ChangeRateLimit() public méthode

public ChangeRateLimit ( UUID user, string method, uint rate ) : bool
user UUID
method string
rate uint
Résultat bool

ClearLog() public méthode

public ClearLog ( bool staleOnly ) : bool
staleOnly bool
Résultat bool

GetAccessToken() public méthode

public GetAccessToken ( UUID user ) : UUID
user UUID
Résultat UUID

GetNewAccessToken() public méthode

public GetNewAccessToken ( UUID user ) : UUID
user UUID
Résultat UUID

GetRateLimit() public méthode

public GetRateLimit ( UUID user, string method ) : uint?
user UUID
method string
Résultat uint?

GetUsageRate() public méthode

public GetUsageRate ( UUID user, string method ) : uint
user UUID
method string
Résultat uint

Initialize() public méthode

public Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore simBase, string defaultConnectionString ) : void
GenericData IGenericData
source IConfigSource
simBase IRegistryCore
defaultConnectionString string
Résultat void

LogAPICall() public méthode

public LogAPICall ( UUID user, string method ) : bool
user UUID
method string
Résultat bool

RateLimitExceed() public méthode

public RateLimitExceed ( UUID user, string method ) : bool
user UUID
method string
Résultat bool

ResetAPIAccess() public méthode

public ResetAPIAccess ( UUID user ) : bool
user UUID
Résultat bool

RevokeAPIAccess() public méthode

public RevokeAPIAccess ( UUID user ) : bool
user UUID
Résultat bool