public RepositoryHandler(Uri repositoryUri, ResolverClientOptions options = null, ILogger logger = null)
        {
            _logger       = logger ?? NullLogger.Instance;
            ClientOptions = options ?? new ResolverClientOptions();
            RepositoryUri = repositoryUri;

            _logger.LogTrace(StandardStrings.ClientInitWithFetcher(repositoryUri.Scheme));

            if (repositoryUri.Scheme == "file")
            {
                RepositoryType = RepositoryTypeCategory.LocalUri;
                _modelFetcher  = new LocalModelFetcher(_logger, ClientOptions);
            }
            else
            {
                RepositoryType = RepositoryTypeCategory.RemoteUri;
                _modelFetcher  = new RemoteModelFetcher(_logger, ClientOptions);
            }
        }
Exemple #2
0
 public ResolverClient(string repositoryUriStr, ResolverClientOptions options = null, ILogger logger = null) :
     this(new Uri(repositoryUriStr), options, logger)
 {
 }
Exemple #3
0
 public ResolverClient(string repositoryUriStr, ResolverClientOptions options) :
     this(repositoryUriStr, options, null)
 {
 }
Exemple #4
0
 public ResolverClient(Uri repositoryUri, ResolverClientOptions options = null, ILogger logger = null)
 {
     this.repositoryHandler = new RepositoryHandler(repositoryUri, options, logger);
 }
Exemple #5
0
 public ResolverClient(Uri repositoryUri, ResolverClientOptions options) : this(repositoryUri, options, null)
 {
 }
Exemple #6
0
 public ResolverClient(ResolverClientOptions options, ILogger logger) : this(new Uri(DefaultRepository), options, logger)
 {
 }
Exemple #7
0
 public ResolverClient(ResolverClientOptions options) : this(new Uri(DefaultRepository), options, null)
 {
 }