Add trace crack result
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for entities which has collection of force actions
|
||||
/// </summary>
|
||||
public interface IHasForceActions
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for entities which able to save (has unique identifier)
|
||||
/// </summary>
|
||||
public interface ISaveable
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique identifier
|
||||
/// </summary>
|
||||
Guid Id { get;}
|
||||
//void Save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Models
|
||||
{
|
||||
public interface ITraceCollectionLogic<T> : ITraceEntityLogic
|
||||
{
|
||||
IEnumerable<T>? Collection { get; set; }
|
||||
int Priority { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using StructureHelperCommon.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StructureHelperCommon.Models
|
||||
{
|
||||
public interface ITraceEntityFactory<T> where T : class
|
||||
{
|
||||
IEnumerable<T>? Collection { get; set; }
|
||||
int Priority { get; set; }
|
||||
|
||||
List<ITraceLoggerEntry> GetTraceEntries();
|
||||
}
|
||||
}
|
||||
28
StructureHelperCommon/Models/Loggers/ITraceEntityLogic.cs
Normal file
28
StructureHelperCommon/Models/Loggers/ITraceEntityLogic.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
//Copyright (c) 2025 Redikultsev Evgeny, Ekaterinburg, Russia
|
||||
//All rights reserved.
|
||||
|
||||
namespace StructureHelperCommon.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates collection of entries for trace logger of some entity
|
||||
/// </summary>
|
||||
public interface ITraceEntityLogic
|
||||
{
|
||||
/// <summary>
|
||||
/// Default priority for created trace logger entries
|
||||
/// </summary>
|
||||
int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// Returns list of entries
|
||||
/// </summary>
|
||||
/// <returns>List of entries</returns>
|
||||
List<ITraceLoggerEntry> GetTraceEntries();
|
||||
/// <summary>
|
||||
/// Creates new collection of entries and adds it into trace logger
|
||||
/// </summary>
|
||||
/// <param name="traceLogger"></param>
|
||||
void AddEntriesToTraceLogger(IShiftTraceLogger traceLogger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user