コード例 #1
0
 public static InstagramApiWrapper GetInstance()
 {
     if (_sharedInstance == null)
     {
         if (_sharedConfiguration == null)
             throw new ApplicationException("API Uninitialized");
         else
             _sharedInstance = new InstagramApiWrapper();
     }
     return _sharedInstance;
 }
コード例 #2
0
        public static InstagramApiWrapper GetInstance(Configuration configuration)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper { Configuration = configuration };
                }
            }

            return _sharedInstance;
        }
コード例 #3
0
        public static InstagramApiWrapper GetInstance(Configuration configuration)
        {
            lock (Threadlock)
            {
                if (_sharedInstance == null)
                {
                    _sharedInstance = new InstagramApiWrapper {
                        Configuration = configuration
                    };
                }
            }

            return(_sharedInstance);
        }
コード例 #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);
        }
コード例 #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;
        }
コード例 #6
0
 public static InstagramApiWrapper GetInstance()
 {
     if (_sharedInstance == null)
     {
         if (_sharedConfiguration == null)
         {
             throw new ApplicationException("API Uninitialized");
         }
         else
         {
             _sharedInstance = new InstagramApiWrapper();
         }
     }
     return(_sharedInstance);
 }