Obtains a lifetime service object to control the lifetime policy for this instance.
An object of type ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the LeaseManagerPollTime property.
This method uses property values to configure ILease for this object.
It is very much inspired by Ingo Rammer's example in Chapter 6 of "Advanced .NET Remoting", but is modified slightly to make it more "Spring-friendly". Basically, the main difference is that instead of pulling lease configuration from the .NET config file, this implementation relies on Spring DI to get appropriate values injected, which makes it much more flexible.
|SecurityException||The immediate caller does not have infrastructure permission.|