C# Класс PocketCampus.Main.Services.ServerAccess

Наследование: IServerAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
UpdateSessionHeader ( ) : void

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

Описание методов

CreateCommunication() публичный Метод

Creates a ThriftCommunication for a plugin.
public CreateCommunication ( string pluginName ) : ThriftCommunication
pluginName string
Результат ThriftCommunication

LoadConfigurationAsync() публичный Метод

Asynchronously loads the server configuration.
public LoadConfigurationAsync ( ) : Task
Результат Task

ServerAccess() публичный Метод

Creates a new ServerAccess.
public ServerAccess ( IHttpClient client, IServerSettings settings ) : System.Collections.Generic
client IHttpClient
settings IServerSettings
Результат System.Collections.Generic