/* Method to get the unique instance of the class */ public static StationLog GetInstance() { if (instance == null) { instance = new StationLog(); } return(instance); }
RoutingWithBikes() { webProxyService = new WebProxyService.WebProxyServiceClient(); client = new HttpClient(); cache = MemoryCache.Default; stationLog = StationLog.GetInstance(); cacheItemPolicy = new CacheItemPolicy { AbsoluteExpiration = DateTimeOffset.Now.AddMinutes(60), }; }