Esempio n. 1
0
        public SourceOnlyRepository(IRepositoryWithSettings repositoryToDelegateTo)
        {
            if (repositoryToDelegateTo == null)
            {
                throw new ArgumentNullException(nameof(repositoryToDelegateTo));
            }

            _delegateType     = repositoryToDelegateTo.Type;
            _delegateSettings = repositoryToDelegateTo.DelegateSettings;
        }
Esempio n. 2
0
 /// <inheritdoc cref="CreateRepositoryDescriptor.Custom" />
 public SourceOnlyRepositoryDescriptor Custom(IRepositoryWithSettings repository)
 {
     _delegateType     = repository?.Type;
     _delegateSettings = repository?.DelegateSettings;
     return(this);
 }