private static Task <OAuthProvider> SelectProviderFromList()
        {
            _awaiter.Reset();
            OAuthProvider provider           = null;
            var           selectionViewModel = new ProviderSelectionViewModel(_providers);

            selectionViewModel.ProviderSelected += (s, e) =>
            {
                provider = e.Provider;
                _awaiter.Set();
            };

            Device.BeginInvokeOnMainThread(() =>
                                           Application.Current.MainPage = new ProviderSelectionPage(selectionViewModel));
            _awaiter.WaitOne();
            _awaiter.Reset();

            return(Task.FromResult(provider));
        }
 public static OAuthProvider AddPRovider(OAuthProvider provider)
 {
     _providers.Add(provider);
     return(provider);
 }