Files
C4IT-F4SD-Collector/F4SD-Cockpit-ServerCore/DataSources/ISearchResultRelationProvider.cs
2025-11-11 11:12:05 +01:00

23 lines
1.0 KiB
C#

using C4IT.FASD.Base;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace C4IT_DataHistoryProvider_Base.DataSources
{
public interface ISearchResultRelationProvider
{
HashSet<enumFasdInformationClass> GetSupportedInformationClasses();
/// <summary>
/// Find objects, which are somehow related to the given objects.
/// </summary>
/// <param name="ids">Identifies the objects for which relations should be searched</param>
/// <param name="informationClass">Determines the information class the objects have, for which relations should be searched.</param>
/// <param name="ageInDays">Specifies the time, in which the relations should be considered.</param>
/// <returns></returns>
Task<cF4sdStagedSearchResultRelations> GetRelationsAsync(IEnumerable<cF4sdIdentityEntry> ids, enumFasdInformationClass informationClass, int ageInDays, CancellationToken token = default);
}
}