| ClientCreateSession Method (String, ReconnectStrategy, TimeSpan, ProxySettings, ISessionEventListener) |
Create a session to a SIXP server.
Namespace: Six.Sixp.ClientAssembly: Six.Sixp.Client (in Six.Sixp.Client.dll) Version: 1.0.4874.0 (1.0.4874.0)
Syntaxpublic 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:
ISessionA reference to a created session
See Also