public boolean willSoonExpire() {if (roleSessionDurationSeconds == 0) {return false;}long now = System.currentTimeMillis();double expireFact = 0.95;return roleSessionDurationSeconds * expireFact < (now - sessionStartedTimeInMilliSeconds) / 1000.0;}

public virtual bool WillSoonExpire(){if (roleSessionDurationSeconds == 0){return false;}var now = DateTime.UtcNow.currentTimeMillis();return roleSessionDurationSeconds * expireFact <(now - sessionStartedTimeInMilliSeconds) / 1000.0;}
