Q. How do you define the lease of the object?
A. The lifetime of the server object is determined by the lifetime lease. This is defined by implementing ILease interface when writing the class code.
You can define the lease of the object by implementing the ILease interface at the code time.