TaskLoggingHelper.InitializeLifetimeService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
InitializeLifetimeService is called when the remote object is activated. This method will determine how long the lifetime for the object will be. Thread safe. However, InitializeLifetimeService and MarkAsInactive should only be called in that order, together or not at all, and no more than once.
public:
override System::Object ^ InitializeLifetimeService();
public override object InitializeLifetimeService ();
override this.InitializeLifetimeService : unit -> obj
Public Overrides Function InitializeLifetimeService () As Object
Returns
The lease object to control this object's lifetime.