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