AzureIoTHubConnectedService.AccountPickerViewModel.AccountPickerViewModel C# (CSharp) Method

AccountPickerViewModel() public method

public AccountPickerViewModel ( IServiceProvider serviceProvider, string hostId ) : Microsoft.VisualStudio.Services.Client.AccountManagement
serviceProvider IServiceProvider
hostId string
return Microsoft.VisualStudio.Services.Client.AccountManagement
        public AccountPickerViewModel(IServiceProvider serviceProvider, string hostId)
        {
            this.hostId = hostId;

            this.authenticationManager = (IAzureAuthenticationManager)serviceProvider.GetService(typeof(IAzureAuthenticationManager));
            this.authenticationManager.SubscriptionsChanged += this.OnSubscriptionsChanged;

            this.accountManager = (IAccountManager)serviceProvider.GetService(typeof(SVsAccountManager));
        }