private void Connect()
{
ClientConfig config = new ClientConfig(this.ClientRole);
config.SetIsAudioEndpoint(this.IsAudioEndpoint);
config.SetLogWriter(this.logWriter);
config.SetServerAddress(this.ServerAddress);
config.SetServerPort(this.ServerPort);
config.SetProfilerEnabled(false);
this.sharingMgr = SharingManager.Create(config);
//delay sending notification so everything is initialized properly
Invoke("SendConnectedNotification", 1);
}