public static InstagramApiWrapper GetInstance() { if (_sharedInstance == null) { if (_sharedConfiguration == null) throw new ApplicationException("API Uninitialized"); else _sharedInstance = new InstagramApiWrapper(); } return _sharedInstance; }
public static InstagramApiWrapper GetInstance(Configuration configuration) { lock (Threadlock) { if (_sharedInstance == null) { _sharedInstance = new InstagramApiWrapper { Configuration = configuration }; } } return _sharedInstance; }
public static InstagramApiWrapper GetInstance(Configuration configuration) { lock (Threadlock) { if (_sharedInstance == null) { _sharedInstance = new InstagramApiWrapper { Configuration = configuration }; } } return(_sharedInstance); }
public static InstagramApiWrapper GetInstance(Configuration configuration, ICache cache) { lock (Threadlock) { if (_sharedInstance == null) { _sharedInstance = new InstagramApiWrapper(); Cache = cache; _sharedInstance.Configuration = configuration; } } return(_sharedInstance); }
public static InstagramApiWrapper GetInstance(Configuration configuration, ICache cache) { lock (Threadlock) { if (_sharedInstance == null) { _sharedInstance = new InstagramApiWrapper(); Cache = cache; _sharedInstance.Configuration = configuration; } } return _sharedInstance; }
public static InstagramApiWrapper GetInstance() { if (_sharedInstance == null) { if (_sharedConfiguration == null) { throw new ApplicationException("API Uninitialized"); } else { _sharedInstance = new InstagramApiWrapper(); } } return(_sharedInstance); }