10.27.03

ISessionCreateCacheSession Method

This method creates a cache session instance to be used in subsequent cache request operations on the session. Multiple ICacheSesssion instances may be created on an ISession instance.

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.27.0
C#
ICacheSession CreateCacheSession(
	CacheSessionProperties cacheSessionProperties
)

Parameters

cacheSessionProperties  CacheSessionProperties
Properties for the new cache session.

Return Value

ICacheSession
Throws OperationErrorException if it fails, otherwise it returns a new ICacheSession instance.

Exceptions

OperationErrorException Thrown when the operation fails.
ObjectDisposedException Thrown when the session is already disposed (terminal state).
ArgumentNullException Thrown when cacheSessionProperties is null.
ArgumentOutOfRangeException Thrown when cacheSessionProperties has invalid property values.

See Also