예제 #1
0
 public VisualStudioAccountProvider()
 //  Loadup the account manager and the account provider so that we can query the keychain.
     : this(new AsyncLazy <IAccountManager>(() =>
                                            ServiceLocator.GetGlobalServiceAsync <SVsAccountManager, IAccountManager>(), NuGetUIThreadHelper.JoinableTaskFactory),
            new InteractiveLoginProvider())
 {
 }
        public static async ValueTask <IServiceBroker> GetRemoteServiceBrokerAsync()
        {
            var serviceBrokerContainer = await ServiceLocator.GetGlobalServiceAsync <SVsBrokeredServiceContainer, IBrokeredServiceContainer>();

            Assumes.NotNull(serviceBrokerContainer);
            return(serviceBrokerContainer.GetFullAccessServiceBroker());
        }