private static void DeleteExpiredAsync() { Random rnd = new Random(); int seconds = rnd.Next(1, 11); Thread.Sleep(seconds); SignSupportDatabase.DeleteExpired(); }
public static SignStorageObject Find(string id) { if (string.IsNullOrEmpty(id)) { throw GetException("Empty id cannot be found in demo-database"); } SignStorageObject StorageObject = SignSupportDatabase.FindById(id); if (StorageObject != null) { return(StorageObject); } throw GetException("Sign request with id " + id + " not found in demo-database"); }