Repository navigation
Remote installed packages in PM UI in VSOe - #3485
Conversation
75abb88 to
0a65e12
Compare
0202319 to
f3f9d0c
Compare
0a65e12 to
4897048
Compare
f3f9d0c to
58f02b4
Compare
e395418 to
4289c62
Compare
| var remoteBroker = await BrokeredServicesUtilities.GetRemoteServiceBrokerAsync(); | ||
| using (var nugetProjectManagerService = await remoteBroker.GetProxyAsync<INuGetProjectManagerService>(NuGetServices.ProjectManagerService, cancellationToken: cancellationToken)) | ||
| { | ||
| Assumes.NotNull(nugetProjectManagerService); |
There was a problem hiding this comment.
Just curious: what is the pattern behind null-checking nugetProjectManagerService but not remoteBroker?
There was a problem hiding this comment.
GetRemoteServiceBrokerAsync has null checks in it and will never return null as it will end with calling 'new'.
| /// <summary> | ||
| /// Contains information about a NuGetProject | ||
| /// </summary> | ||
| public interface IProjectContextInfo |
There was a problem hiding this comment.
Correct me if I'm mistaken, but it seems that by putting this type in this assembly, this assembly will be loaded in VS scenarios.
@nkolev92, can you please clarify what you mean by "[s]tandard VS scenarios" in #3330? When is it acceptable and unacceptable to load NuGet.VisualStudio.Internal.Contracts.dll?
There was a problem hiding this comment.
Yes this will be loaded in VS scenarios. Why is this not acceptable?
There was a problem hiding this comment.
I don't think I said this is unacceptable.
I seek to understand when it is acceptable and when it is not acceptable.
There was a problem hiding this comment.
It will cause an RPS regression.
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI * Enable remoting of the Installed/Update tab in PM UI
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI * Enable remoting of the Installed/Update tab in PM UI
* Abstract NuGetProject to ProjectContextInfo in NuGet.Client UI * Enable remoting of the Installed/Update tab in PM UI
Bug
Fixes: NuGet/Home#9610
Regression: No
Fix
Details: Create remoting infrastructure for getting installed packages in the package manager UI in a Visual Studio Online Environment
Testing/Validation
Tests Added: No
Reason for not adding tests:
Validation: Tested locally and against a remote machine