Azure.ApiManagement.IngestTool.Views.AccountPickerHost.EnsureRMAuthenticationManager C# (CSharp) Method

EnsureRMAuthenticationManager() private method

private EnsureRMAuthenticationManager ( ) : void
return void
        private void EnsureRMAuthenticationManager()
        {
            if (_rmAuthenticationManager == null)
            {
                _rmAuthenticationManager = ServiceProvider.GlobalProvider.GetService(typeof(IAzureRMAuthenticationManager)) as IAzureRMAuthenticationManager;

                if (_rmAuthenticationManager != null)
                {
                    _rmAuthenticationManager.SubscriptionsChanged += OnSubscriptionsChanged;
                }
            }
        }