private void OnServerConnectionStarting(object sender, ServerConnectionEventArgs args) { args.ConnectionInfo = CurrentServerInfo; if (ServerConnectionStarting != null) { ServerConnectionStarting(this, args); } }
private void OnServerConnectionDisconnected(object sender, ServerConnectionEventArgs args) { args.ConnectionInfo = CurrentServerInfo; PurgeClient(); if (ServerConnectionDisconnected != null) { ServerConnectionDisconnected(this, args); } }
public void OnServerConnectionSucceeded(object sender, ServerConnectionEventArgs args) { args.ConnectionInfo = CurrentServerInfo; if (ServerConnectionSucceeded != null) { ServerConnectionSucceeded(this, args); } RequestAuth(CurrentServerInfo.Password); }