public SourceOnlyRepository(IRepositoryWithSettings repositoryToDelegateTo) { if (repositoryToDelegateTo == null) { throw new ArgumentNullException(nameof(repositoryToDelegateTo)); } _delegateType = repositoryToDelegateTo.Type; _delegateSettings = repositoryToDelegateTo.DelegateSettings; }
/// <inheritdoc cref="CreateRepositoryDescriptor.Custom" /> public SourceOnlyRepositoryDescriptor Custom(IRepositoryWithSettings repository) { _delegateType = repository?.Type; _delegateSettings = repository?.DelegateSettings; return(this); }