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; }