コード例 #1
0
 /// <summary>
 /// Default callback when this provider obtains a new access token or
 /// refresh token from the OAuth server.
 /// </summary>
 /// <param name="provider">The provider.</param>
 protected static void TokensUpdatedCallback(AdsOAuthProvider provider)
 {
 }
コード例 #2
0
 /// <summary>
 /// Default callback when this provider obtains a new access token or
 /// refresh token from the OAuth server.
 /// </summary>
 /// <param name="provider">The provider.</param>
 protected static void TokensUpdatedCallback(AdsOAuthProvider provider) {
 }
コード例 #3
0
 /// <summary>
 /// Sets the OAuth provider.
 /// </summary>
 /// <param name="config">The config.</param>
 private void SetOAuthProvider(AppConfigBase config)
 {
     if (config.OAuth2Mode == OAuth2Flow.APPLICATION) {
     this.OAuthProvider = new OAuth2ProviderForApplications(config);
       } else {
     this.OAuthProvider = new OAuth2ProviderForServiceAccounts(config);
       }
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the OAuth2ClientMessageInspector class.
 /// </summary>
 public OAuth2ClientMessageInspector(AdsOAuthProvider oauthProvider)
 {
     this.oauthProvider = oauthProvider;
 }