init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using DTS.Common.Import.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Import.Persist
|
||||
{
|
||||
public abstract class SaveVariantBase : IPersistImport
|
||||
{
|
||||
protected ImportObject _importObject;
|
||||
protected readonly IPersistCalculator _persistCalculator;
|
||||
protected readonly IImportNotification _importNotification;
|
||||
public abstract void Save();
|
||||
|
||||
protected readonly Func<bool> IsCancelled;
|
||||
|
||||
protected SaveVariantBase(ImportObject importObject, IPersistCalculator persistCalculator, IImportNotification importNotification,
|
||||
Func<bool> isCancelled = null)
|
||||
{
|
||||
IsCancelled = isCancelled == null ? () => false : isCancelled;
|
||||
_persistCalculator = persistCalculator;
|
||||
_importNotification = importNotification;
|
||||
_importObject = importObject;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user