private int GetImageIndex(FilteredLockConnection a) { var pi = Math.Round((((float)a.REProcess.IdleTime.TotalMinutes / float.Parse(Properties.Settings.Default.LeastMinutesIdle)) * 100.0), 0); if (pi >= 100.0) { return(2); } else if (Properties.Settings.Default.ExcludedREUsers.Contains(a.Lock.User.Name) || Properties.Settings.Default.ExcludedHosts.Contains(a.Lock.MachineName)) { return(3); } else { return(4); } }
void TimedREConnectionMonitor_FreeingLock(FilteredLockConnection connection) { logBuffer.AppendFormat("\nFreeing connections from lock {0} -- {1} -- {2}\n", connection.Lock.MachineName, connection.Lock.User.Name, connection.REProcess.hostname); }
public FreeingEventArgs(FilteredLockConnection connection, sysprocess process) : base(connection) { Process = process; }
public FreedEventArgs(FilteredLockConnection connection, sysprocess process, int result) : base(connection) { Process = process; Result = result; }
public LockConnectionEventArgs(FilteredLockConnection connection) : base() { Connection = connection; }