/// <summary>
        /// Initializes the ModelsRepositoryClient with custom client <paramref name="options"/> while pointing to
        /// a custom <paramref name="repositoryUri"/>.
        /// </summary>
        /// <param name="repositoryUri">
        /// The models repository Uri. This can be a remote endpoint or local directory.
        /// </param>
        /// <param name="options">
        /// ModelsRepositoryClientOptions to configure model dependency resolution and client behavior.
        /// </param>
        public ModelsRepositoryClient(Uri repositoryUri, ModelsRepositoryClientOptions options = default)
        {
            if (options == null)
            {
                options = new ModelsRepositoryClientOptions();
            }

            RepositoryUri      = repositoryUri;
            _clientOptions     = options;
            _clientDiagnostics = new ClientDiagnostics(options);
            _repositoryHandler = new RepositoryHandler(RepositoryUri, _clientDiagnostics, _clientOptions);
        }
Пример #2
0
 /// <summary>
 /// Initializes the <c>ResolverClient</c> with custom client <paramref name="options"/> while pointing to
 /// a custom <paramref name="repositoryUri"/> for resolution.
 /// </summary>
 /// <param name="repositoryUri">
 /// The model repository <c>Uri</c>. This can be a remote endpoint or local directory.
 /// </param>
 /// <param name="options">
 /// <c>ResolverClientOptions</c> to configure resolution and client behavior.
 /// </param>
 public ResolverClient(Uri repositoryUri, ResolverClientOptions options)
 {
     this.repositoryHandler = new RepositoryHandler(repositoryUri, options);
 }