Beispiel #1
0
        public void SetupProvider()
        {
            ShortenUrlProvider = new NullShortenUrlProvider();
#if FALSE
            if (String.IsNullOrEmpty(Config.BitlyLogin) || String.IsNullOrEmpty(Config.BitlyApiKey))
            {
                ShortenUrlProvider = DefaultShortenUrlProvider;
            }
            else
            {
                ShortenUrlProvider = new BitlyShortenUrlProvider(Config.BitlyLogin, Config.BitlyApiKey);
            }
#endif
        }
 public void SetupProvider()
 {
     ShortenUrlProvider = new NullShortenUrlProvider();
     #if FALSE
     if (String.IsNullOrEmpty(Config.BitlyLogin) || String.IsNullOrEmpty(Config.BitlyApiKey))
     {
         ShortenUrlProvider = DefaultShortenUrlProvider;
     }
     else
     {
         ShortenUrlProvider = new BitlyShortenUrlProvider(Config.BitlyLogin, Config.BitlyApiKey);
     }
     #endif
 }