다음을 통해 공유


TaskLoggingHelper.InitializeLifetimeService Method

Definition

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.

Applies to