-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 8068 from hotfix/v4.4.9 into master
- Loading branch information
Showing
7 changed files
with
222 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using FiftyOne.Pipeline.Core.Data; | ||
using FiftyOne.Pipeline.Core.FlowElements; | ||
using FiftyOne.Pipeline.Engines.Data; | ||
using FiftyOne.Pipeline.Engines.FlowElements; | ||
using Microsoft.Extensions.Logging; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace FiftyOne.Pipeline.Engines.TestHelpers | ||
{ | ||
public class GenericEngine<T> : AspectEngineBase<T, IAspectPropertyMetaData> | ||
where T : IAspectData | ||
{ | ||
public override string DataSourceTier { get; } | ||
|
||
public override string ElementDataKey { get; } | ||
|
||
public override IEvidenceKeyFilter EvidenceKeyFilter => new EvidenceKeyFilterWhitelist(new List<string>()); | ||
|
||
public override IList<IAspectPropertyMetaData> Properties { get; } | ||
|
||
public GenericEngine( | ||
ILogger<GenericEngine<T>> logger, | ||
string tier, | ||
string dataKey, | ||
IList<IAspectPropertyMetaData> properties) : | ||
base(logger, (p, e) => default(T)) | ||
{ | ||
DataSourceTier = tier; | ||
ElementDataKey = dataKey; | ||
Properties = properties; | ||
} | ||
|
||
protected override void ProcessEngine(IFlowData data, T aspectData) | ||
{ | ||
} | ||
|
||
protected override void UnmanagedResourcesCleanup() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters