Interface ISession
Сессия API.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface ISession : IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged, IDisposable
Properties
ClientType
Возвращает и задает тип клиента.
Declaration
ClientType ClientType { get; set; }
Property Value
| Type | Description |
|---|---|
| ClientType |
FullTextIndex
Возвращает полнотекстовый индекс.
Declaration
IFullTextIndex FullTextIndex { get; }
Property Value
| Type | Description |
|---|---|
| IFullTextIndex |
IsActive
Признак активной сессии.
Declaration
bool IsActive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsExclusive
Признак монопольного доступа.
Declaration
bool IsExclusive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Language
Возвращает и задает язык сообщений API.
Declaration
string Language { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Licenses
Возвращает лицензии.
Declaration
ILicenseCollection Licenses { get; }
Property Value
| Type | Description |
|---|---|
| ILicenseCollection |
Metadata
Возвращает метаданные сессии.
Declaration
ISessionMetadata Metadata { get; }
Property Value
| Type | Description |
|---|---|
| ISessionMetadata |
Objects
Возвращает интерфейс для работы с объектами сессии API.
Declaration
ISessionObjects Objects { get; }
Property Value
| Type | Description |
|---|---|
| ISessionObjects |
SecurityManager
Возвращает менеджер безопасности.
Declaration
ISecurityManager SecurityManager { get; }
Property Value
| Type | Description |
|---|---|
| ISecurityManager |
SessionDefinition
Возвращает определение сессии.
Declaration
ISessionDefinition SessionDefinition { get; }
Property Value
| Type | Description |
|---|---|
| ISessionDefinition |
SessionHash
Возвращает хэш сессии, по которому её в дальнейшем можно будет восстановить.
Declaration
Guid SessionHash { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Storage
Свойства хранилища.
Declaration
IStorage Storage { get; }
Property Value
| Type | Description |
|---|---|
| IStorage |
Methods
Close()
Закрывает сессию.
Declaration
void Close()
LoadFullTextIndexAsync()
Загружает полнотекстовый индекс.
Declaration
IAsyncOperation LoadFullTextIndexAsync()
Returns
| Type | Description |
|---|---|
| IAsyncOperation | Асинхронная операция загрузки полнотекстового индекса. |
Events
Closed
Возникает на закрытие сессии.
Declaration
event EventHandler Closed
Event Type
| Type | Description |
|---|---|
| EventHandler |
Faulted
Возникает на некорректное закрытие сессии.
Declaration
event EventHandler Faulted
Event Type
| Type | Description |
|---|---|
| EventHandler |