When a lease expires the ISponsor.Renewal
method is being called on the object's sponsor.
Thus, you can implement ISponsor
yourself and put your logic there.
To do that, you'll need to call the ILease.Register
method in your implementation of InitializeLifetimeService
, passing your ISponsor
as the argument.