ArcObjects Library Reference (Server)  

IServerObjectConfiguration.IsPooled Property

Indicates whether the server objects defined by this configuration are pooled.

[Visual Basic .NET]
Public Property IsPooled As Boolean
[C#]
public bool IsPooled {get; set;}
[C++]
HRESULT get_IsPooled(
  VARIANT_BOOL* IsPooled
);
[C++]
HRESULT put_IsPooled(
  VARIANT_BOOL IsPooled
);
[C++]

Parameters

IsPooled [out, retval]   IsPooled is a parameter of type VARIANT_BOOL IsPooled [in]   IsPooled is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

Server objects can be either pooled or non-pooled. Pooled server objects can be shared accross multiple sessions and applications and are held onto by an application for the duration of a single request. Pooled server objects are meant for applications that make stateless use of those objects.

Non-pooled server objects are dedicated to a single application session and are held onto for the duration of an application session. Non-pooled server objects are not shared between application sessions, and are meant for applications that make stateful use of those objects.

Use the IsPooled property to indicate if the server objects created by this server object configuration are pooled or non-pooled. When StartConfguration is called on a server object configuration whose IsPooled property is true a set of server objects will be pre-loaded based on the MinInstances property of the server object configuration.

When StartConfiguration is called on a server object configuration whose IsPooled property is false, no server objects are pre-loaded. Server objects are loaded and initialized when an application gets one from the server using CreateServerContext.

See Also

IServerObjectConfiguration Interface

.NET Related Topics

Server |