Editar

Compartilhar via


ServiceHostBase.OnClose(TimeSpan) Method

Definition

Closes down the hosted service, including their channel dispatchers and associated instance contexts and listeners.

protected:
 override void OnClose(TimeSpan timeout);
protected override void OnClose (TimeSpan timeout);
override this.OnClose : TimeSpan -> unit
Protected Overrides Sub OnClose (timeout As TimeSpan)

Parameters

timeout
TimeSpan

The TimeSpan that specifies how long the on-close operation has to complete before timing out.

Remarks

Calling OnClose(TimeSpan) does the following:

Applies to