Click or drag to resize
ClientCreateSession Method (String, ReconnectStrategy, TimeSpan, ProxySettings, ISessionEventListener)
Create a session to a SIXP server.

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(
	string address,
	ReconnectStrategy reconnectStrategy,
	TimeSpan reconnectInterval,
	ProxySettings proxy,
	ISessionEventListener eventHandler
)

Parameters

address
Type: SystemString
service@ip|dns:port,[service@ip|dns:port],....
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. Null if no proxy is to be used.
eventHandler
Type: Six.Sixp.ClientISessionEventListener
An object that implements ISessionEventListener

Return Value

Type: ISession
A reference to a created session
See Also