public SinceDateUpdatingPersistState(
            ISinceParameterRepository sinceParameterRepository,
            IPersistState internalState)
        {
            Ensure.Argument.IsNotNull(sinceParameterRepository, nameof(sinceParameterRepository));
            Ensure.Argument.IsNotNull(internalState, nameof(internalState));

            this.sinceParameterRepository = sinceParameterRepository;
            this.internalState            = internalState;
        }
        public NoWorkspaceExceptionsThrowingPersistState(IPersistState internalState)
        {
            Ensure.Argument.IsNotNull(internalState, nameof(internalState));

            this.internalState = internalState;
        }
Exemplo n.º 3
0
 internal static IPersistState UpdateSince <TInterface, TDatabaseInterface>(this IPersistState state, ISinceParameterRepository sinceParameterRepository)
     where TInterface : ILastChangedDatable
     where TDatabaseInterface : TInterface, IDatabaseSyncable
 => new SinceDateUpdatingPersistState <TInterface, TDatabaseInterface>(sinceParameterRepository, state);
 internal static NoWorkspaceExceptionsThrowingPersistState ThrowNoWorkspaceExceptionIfNeeded(this IPersistState state)
 => new NoWorkspaceExceptionsThrowingPersistState(state);