Example #1
0
 HttpClient GetAutoPickerHttpClient(string clientId)
 {
     if (autoPickerHttpClient == null)
     {
         var bpf = new HttpBaseProtocolFilter();
         autoPicker = new AuthFilters.SwitchableAuthFilter(bpf);
         //You can add multiple fiters (twitter, google etc) if you are connecting to more than one service.
         autoPicker.AddOAuth2Filter(MakeFacebook(clientId, bpf));
         autoPickerHttpClient = new HttpClient(autoPicker);
     }
     return autoPickerHttpClient;
 }
Example #2
0
 HttpClient GetAutoPickerHttpClient(string clientId)
 {
     if (autoPickerHttpClient == null)
     {
         var bpf = new HttpBaseProtocolFilter();
         autoPicker = new AuthFilters.SwitchableAuthFilter(bpf);
         //You can add multiple fiters (twitter, google etc) if you are connecting to more than one service.
         autoPicker.AddOAuth2Filter(MakeFacebook(clientId, bpf));
         autoPickerHttpClient = new HttpClient(autoPicker);
     }
     return(autoPickerHttpClient);
 }