public MapModule[] GetModules(MapStrategy strategy, Version license) { var creator = MapStrategyCreator.Creator(strategy); var searchMapStrategy = creator.Factory(); return(searchMapStrategy.GetModules(_root, license)); }
public static MapStrategy getMapStrategy() { if (_instance == null) { _instance = new LitMapFactory(); } return(_instance); }
internal static MapStrategyCreator Creator(MapStrategy strategy) { switch (strategy) { case MapStrategy.PerpetualLicense: return(new MapStrategyPerpetualLicenseCreator()); default: return(new MapStrategySubscriptionCreator()); } }
public void AssertUrlChange(string originalUrl, string expectedCanonicalUrl) { var uriBuilder = new UriBuilder(originalUrl); var dictionary = new Dictionary <string, string> { { "/foo", "/bar" } }; IUrlStrategy strategy = new MapStrategy(dictionary); strategy.Apply(uriBuilder); Assert.That(uriBuilder.Uri, Is.EqualTo(new Uri(expectedCanonicalUrl))); }
public TReturn Map(IRecord record) { if (_mapStrategy == null) { lock (Locker) { if (_mapStrategy == null) { _mapStrategy = new MapStrategy(record); } } } return(_mapStrategy.Map(record)); }
public static MapStrategy getMapStrategy() { if (_instance == null) _instance = new BigMapFactory(); return _instance; }