C# Class PocketCampus.Main.Services.ServerAccess

Inheritance: IServerAccess
Afficher le fichier Open project: accandme/pocketcampus

Méthodes publiques

Méthode Description
CreateCommunication ( string pluginName ) : ThriftCommunication

Creates a ThriftCommunication for a plugin.

LoadConfigurationAsync ( ) : Task

Asynchronously loads the server configuration.

ServerAccess ( IHttpClient client, IServerSettings settings ) : System.Collections.Generic

Creates a new ServerAccess.

Private Methods

Méthode Description
UpdateSessionHeader ( ) : void

Updates the HTTP headers sent with each request to add/remove/change the session.

Method Details

CreateCommunication() public méthode

Creates a ThriftCommunication for a plugin.
public CreateCommunication ( string pluginName ) : ThriftCommunication
pluginName string
Résultat ThriftCommunication

LoadConfigurationAsync() public méthode

Asynchronously loads the server configuration.
public LoadConfigurationAsync ( ) : Task
Résultat Task

ServerAccess() public méthode

Creates a new ServerAccess.
public ServerAccess ( IHttpClient client, IServerSettings settings ) : System.Collections.Generic
client IHttpClient
settings IServerSettings
Résultat System.Collections.Generic