Пример #1
0
        public static oAuthInstagram GetInstance(ConfigurationIns configuration)
        {
            lock (threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new oAuthInstagram();
                    _sharedInstance.Configuration = configuration;
                }
            }

            return(_sharedInstance);
        }
Пример #2
0
 public static oAuthInstagram GetInstance()
 {
     if (_sharedInstance == null)
     {
         if (_sharedConfiguration == null)
         {
             throw new ApplicationException("API Uninitialized");
         }
         else
         {
             _sharedInstance = new oAuthInstagram();
         }
     }
     return(_sharedInstance);
 }