Table of Contents

Interface IEventLogTreeDataService

Namespace
Ascon.Polynom.Web.Api.Data.Interfaces.Repository
Assembly
Ascon.Polynom.Web.Api.Data.dll
public interface IEventLogTreeDataService : IDataService<ITreeNode>, IDataService

Methods

Clear(int, CancellationToken)

Task Clear(int days = 0, CancellationToken cancellationToken = default)

Parameters

days int
cancellationToken CancellationToken

Returns

Task

DeleteExportItem(string, CancellationToken)

Task DeleteExportItem(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

Task

Export(string?, ulong?, ulong?, TreeFilterOptions, bool, CancellationToken)

Task Export(string? filterString, ulong? from, ulong? to, TreeFilterOptions filterOptions = TreeFilterOptions.Default, bool all = false, CancellationToken cancellationToken = default)

Parameters

filterString string
from ulong?
to ulong?
filterOptions TreeFilterOptions
all bool
cancellationToken CancellationToken

Returns

Task

ExportWait(CancellationToken)

Проверяет есть ли уже запущенная задача экспорта.

Task ExportWait(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Токен отмены.

Returns

Task

GetExportFile(string, CancellationToken)

Task<string> GetExportFile(string name, CancellationToken cancellationToken)

Parameters

name string
cancellationToken CancellationToken

Returns

Task<string>

GetExportItems(CancellationToken)

Task<EventLogExportItem[]> GetExportItems(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<EventLogExportItem[]>

GetNodeAsync(IIdentifiableObject, string?, ulong?, ulong?, TreeFilterOptions, int, int, CancellationToken)

Task<IPaginatedList<IEventLogTreeNode>> GetNodeAsync(IIdentifiableObject nodeObject, string? filterString, ulong? from, ulong? to, TreeFilterOptions filterOptions = TreeFilterOptions.Default, int pageNumber = -1, int pageSize = -1, CancellationToken cancellationToken = default)

Parameters

nodeObject IIdentifiableObject

Идентификатор родительского элемента.

filterString string

Строка фильтрации.

from ulong?

Дата начала событий.

to ulong?

Дата окончания событий.

filterOptions TreeFilterOptions

Опции фильтрации.

pageNumber int

Страница.

pageSize int

Количество элементов в странице.

cancellationToken CancellationToken

Токен отмены.

Returns

Task<IPaginatedList<IEventLogTreeNode>>

GetTreeAsync(string?, ulong?, ulong?, bool, TreeFilterOptions, CancellationToken)

Task<IEventLogTreeNode> GetTreeAsync(string? filterString, ulong? from, ulong? to, bool refresh = false, TreeFilterOptions filterOptions = TreeFilterOptions.Default, CancellationToken cancellationToken = default)

Parameters

filterString string
from ulong?
to ulong?
refresh bool
filterOptions TreeFilterOptions
cancellationToken CancellationToken

Returns

Task<IEventLogTreeNode>