C# Class PocketCampus.Main.Services.ServerAccess

Inheritance: IServerAccess
Datei anzeigen Open project: accandme/pocketcampus

Public Methods

Method 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

Method Description
UpdateSessionHeader ( ) : void

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

Method Details

CreateCommunication() public method

Creates a ThriftCommunication for a plugin.
public CreateCommunication ( string pluginName ) : ThriftCommunication
pluginName string
return ThriftCommunication

LoadConfigurationAsync() public method

Asynchronously loads the server configuration.
public LoadConfigurationAsync ( ) : Task
return Task

ServerAccess() public method

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