AzureIoTHubConnectedService.AzureServiceAuthenticator.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    this.accountPickerViewModel.PropertyChanged -= this.AccountPickerViewModel_PropertyChanged;
                    this.accountPickerViewModel.AuthenticationChanged -= this.AccountPickerViewModel_AuthenticationChanged;
                    this.accountPickerViewModel.Dispose();

                    ((AccountPicker)this.View).Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }