Exemplo n.º 1
0
 public static InstagramApiWrapper GetInstance()
 {
     if (_sharedInstance == null)
     {
         if (_sharedConfiguration == null)
             throw new ApplicationException("API Uninitialized");
         else
             _sharedInstance = new InstagramApiWrapper();
     }
     return _sharedInstance;
 }
Exemplo n.º 2
0
        public static InstagramApiWrapper GetInstance(Configuration configuration)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper { Configuration = configuration };
                }
            }

            return _sharedInstance;
        }
Exemplo n.º 3
0
        public static InstagramApiWrapper GetInstance(Configuration configuration)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper {
                        Configuration = configuration
                    };
                }
            }

            return(_sharedInstance);
        }
Exemplo n.º 4
0
        public static InstagramApiWrapper GetInstance(Configuration configuration, ICache cache)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper();
                    Cache           = cache;
                    _sharedInstance.Configuration = configuration;
                }
            }

            return(_sharedInstance);
        }
Exemplo n.º 5
0
        public static InstagramApiWrapper GetInstance(Configuration configuration, ICache cache)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper();
                    Cache = cache;
                    _sharedInstance.Configuration = configuration;
                }
            }

            return _sharedInstance;
        }
Exemplo n.º 6
0
 public static InstagramApiWrapper GetInstance()
 {
     if (_sharedInstance == null)
     {
         if (_sharedConfiguration == null)
         {
             throw new ApplicationException("API Uninitialized");
         }
         else
         {
             _sharedInstance = new InstagramApiWrapper();
         }
     }
     return(_sharedInstance);
 }