So I created a private extension gallery in Visual Studio and published an extension.
I wanted to create another extension which would automatically update the first one when an update is available. I found a sample source code (https://github.com/madskristensen/ExtensionUpdater) for seeking and updating extensions automatically using the ExtensionRepositoryService which exposes ability to query an online Visual Studio Extensions repository.
The ExtensionRepositoryService comes predefined and connected to the Visual Studio Gallery once it is returned using the Package.GetService(Type) method the following way:
var repository = (IVsExtensionRepository)GetService(typeof(SVsExtensionRepository));
Querying the repository later is achieved using the following code:
var entry = _repository.CreateQuery<GalleryEntry>(false, true, "ExtensionManagerUpdate")
.Where(e => e.VsixID == extension.Header.Identifier)
.AsEnumerable()
.FirstOrDefault();
My question is: Is it possible to utilize the same API to connect to a private VS gallery and query the provided extensions in the gallery?