LifetimeServices.LeaseManagerPollTime 属性

定义

获取或设置每次激活租约管理器以清除到期租约之间的时间间隔。

C#
public static TimeSpan LeaseManagerPollTime { get; set; }
C#
public static TimeSpan LeaseManagerPollTime { get; [System.Security.SecurityCritical] set; }

属性值

租约管理器检查到期租约后休眠的默认时间。

属性

例外

在调用堆栈上部,至少有一个调用方没有配置远程处理类型和通道的权限。 仅在设置该属性值时才会引发此异常。

注解

当前 属性定义租约管理器变为活动状态以清理过期租约的频率。 例如,如果 LeaseManagerPollTime 设置为 100 秒,则每隔 100 秒检查一次租约列表的清理和续订。

属性的 LeaseManagerPollTime 默认值为 10 秒。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1