Click or drag to resize
ClientCreateSession Method (ListSixpServerSettings, ReconnectStrategy, TimeSpan, ProxySettings, ISessionEventListener)
Create a session to a SIXP server(s) with automatic reconnect on disconnect.

Namespace: Six.Sixp.Client
Assembly: Six.Sixp.Client (in Six.Sixp.Client.dll) Version: 1.0.4874.0 (1.0.4874.0)
Syntax
C#
public ISession CreateSession(
	List<SixpServerSettings> servers,
	ReconnectStrategy reconnectStrategy,
	TimeSpan reconnectInterval,
	ProxySettings proxy,
	ISessionEventListener eventHandler
)

Parameters

servers
Type: System.Collections.GenericListSixpServerSettings
List of servers to use, see SixpServerSettings
reconnectStrategy
Type: Six.Sixp.ClientReconnectStrategy
The reconnect strategy to be use. Set up subscriptions or not.
reconnectInterval
Type: SystemTimeSpan
Time between reconnect tries when the connection is broken (seconds).
proxy
Type: Six.Sixp.ClientProxySettings
Proxy settings.
eventHandler
Type: Six.Sixp.ClientISessionEventListener
An object that implements ISessionEventListener

Return Value

Type: ISession
A reference to a created session
Remarks
When you are disconnected the requests should be reset, ie you should drop everything you have saved. This because the server you are reconnected to could for example be running a different version with field sets that differs from the one the old one used.
See Also