Files
StructureHelper/StructureHelperLogics/Models/CrossSections/RepositoryOperationsLogic.cs
Evgeny Redikultsev 002be12b2f FixActionDeleting
2025-12-21 17:05:13 +05:00

25 lines
1021 B
C#

using NLog.LayoutRenderers;
using StructureHelperCommon.Infrastructures.Interfaces;
using StructureHelperCommon.Models.Forces;
using StructureHelperLogics.Models.BeamShears;
using StructureHelperLogics.NdmCalculations.Primitives;
namespace StructureHelperLogics.Models.CrossSections
{
public class RepositoryOperationsLogic : IRepositoryOperationsLogic
{
private ICrossSectionRepository repository;
private RepositoryPrimitiveOperation primitiveLogic;
private IRepositoryOperation<ICrossSectionRepository, IForceAction> actionLogic;
public RepositoryOperationsLogic(ICrossSectionRepository repository)
{
this.repository = repository;
}
public IRepositoryOperation<ICrossSectionRepository, INdmPrimitive> Primitives => primitiveLogic ??= new RepositoryPrimitiveOperation(repository);
public IRepositoryOperation<ICrossSectionRepository, IForceAction> Actions => actionLogic ??= new RepositoryActionOperations(repository);
}
}