Platform Symphony .NET API Reference - Version 4.1
OnSessionEnter Method (sessionContext)
NamespacesPlatform.Symphony.SoamServiceContainerOnSessionEnter(SessionContext)
The middleware triggers the invocation of this handler to bind the Service Instance to its owning Session when common data is provided by the Client.
Declaration Syntax
C#
public virtual void OnSessionEnter(
	SessionContext sessionContext
)
Parameters
sessionContext (SessionContext)
The context contains information about the binding Session
Remarks

The application developer must put any session-specific initialization into this handler.

If any common data is available for the associated Session, it should be accessed in the developer's implementation of this method. Default implementation of this handler does nothing.

This handler may be called multiple times during the lifecycle of the service instance, since a service instance can be re-assigned to other sessions.

Exceptions
ExceptionCondition
[Platform.Symphony.Soam.SoamException] The application developer can throw SoamException (or subclassed exceptions: FailureException or FatalException) from this method to indicate that an error occurred during session-specific initialization or during common data processing.
See Also
[SessionContext]
[ServiceContainer.OnSessionLeave]

Assembly: Platform.Symphony.Soam.Net (Module: Platform.Symphony.Soam.Net) Version: 4.1.0.0