/// <summary> /// 生存期控制 /// </summary> /// <returns></returns> public override object InitializeLifetimeService() { Instance = this; ILease lease = (ILease)base.InitializeLifetimeService(); if (lease.CurrentState == LeaseState.Initial) { lease.InitialLeaseTime = TimeSpan.FromDays(2000); //lease.RenewOnCallTime = TimeSpan.FromHours(20); //lease.SponsorshipTimeout = TimeSpan.FromHours(20); } return(lease); }
public void SetService(KuaFuCopyService service) { _KFCopyService = service; }