AzureIoTHubConnectedService.AzureServiceAuthenticator.AzureServiceAuthenticator C# (CSharp) Method

AzureServiceAuthenticator() protected method

protected AzureServiceAuthenticator ( IServiceProvider serviceProvider, string providerId ) : Microsoft.VisualStudio.Services.Client.AccountManagement
serviceProvider IServiceProvider
providerId string
return Microsoft.VisualStudio.Services.Client.AccountManagement
        protected AzureServiceAuthenticator(IServiceProvider serviceProvider, string providerId)
        {
            this.accountPickerViewModel = new AccountPickerViewModel(serviceProvider, "ConnectedServices:" + providerId);
            this.accountPickerViewModel.PropertyChanged += this.AccountPickerViewModel_PropertyChanged;
            this.accountPickerViewModel.AuthenticationChanged += this.AccountPickerViewModel_AuthenticationChanged;
            this.CalculateIsAuthenticated();

            this.View = new AccountPicker(this.accountPickerViewModel);
        }