This document is archived and information here might be outdated.  Recommended version.

IServerObjectConfiguration.UsageTimeout Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectConfiguration Interface > IServerObjectConfiguration.UsageTimeout Property
ArcGIS Developer Help

IServerObjectConfiguration.UsageTimeout Property

Maximum time (in seconds) a client can hold onto an instance of a server object for this server object configuration before releasing it back to the server. It is the maximum time allowed between calling CreateServerContext and ReleaseServerContext.

[Visual Basic .NET]
Public Property UsageTimeout As Integer
public int UsageTimeout {get; set;}
HRESULT get_UsageTimeout(
  System.Int32* pVal
HRESULT put_UsageTimeout(
  long pVal
pVal [out, retval]

pVal is a parameter of type long* pVal [in]
pVal is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Once a client gets a reference to a server object, they can hold onto that server object as long as they want to before releasing it. The amount of time between when a client gets a reference to a server object and when they release it is called the usage time. To ensure that clients don�t hold references to server object�s for too long (i.e. they don�t correctly release server objects), A server object can be configured to have a maximum usage time by specifying the UsageTimeout property on IServerObjectConfiguration. If a client holds onto a server object longer than the maximum usage time, then the server object is automatically released and the client will lose their reference to the server object.

The UsageTimeout is in seconds.

See Also

IServerObjectConfiguration Interface