Capture.Interface.Screenshot.InitializeLifetimeService C# (CSharp) Method

InitializeLifetimeService() private method

private InitializeLifetimeService ( ) : object
return object
        public override object InitializeLifetimeService()
        {
            //ILease lease = (ILease)base.InitializeLifetimeService();
            //if (lease.CurrentState == LeaseState.Initial)
            //{
            //    lease.InitialLeaseTime = TimeSpan.FromSeconds(10);
            //    lease.SponsorshipTimeout = TimeSpan.FromSeconds(10);
            //    lease.RenewOnCallTime = TimeSpan.FromSeconds(10);
            //}

            //return lease;
            //
            // Returning null designates an infinite non-expiring lease.
            // We must therefore ensure that RemotingServices.Disconnect() is called when
            // it's no longer needed otherwise there will be a memory leak.
            //
            return null;

            //var lease = (ILease)base.InitializeLifetimeService();
            //if (lease.CurrentState == LeaseState.Initial)
            //{
            //    lease.InitialLeaseTime = TimeSpan.FromSeconds(2);
            //    lease.SponsorshipTimeout = TimeSpan.FromSeconds(5);
            //    lease.RenewOnCallTime = TimeSpan.FromSeconds(2);
            //}
            //return lease;
        }