Beispiel #1
0
 public static void Stop()
 {
     lock (sync)
     {
         HttpRuntime.Cache.Remove(instance._cacheKey);
         instance = null;
     }
 }
Beispiel #2
0
 public static void Start(string applicationUrl)
 {
     if (IsKeepingAlive)
     {
         return;
     }
     lock (sync)
     {
         instance = new KeepAliveManager(applicationUrl);
         instance.Insert();
     }
 }
Beispiel #3
0
 private KeepAliveManager(string applicationUrl)
 {
     _applicationUrl = applicationUrl;
     _cacheKey       = Guid.NewGuid().ToString();
     instance        = this;
 }