DOTMsn no está disparando el evento SingedIn
-
19-09-2019 - |
Pregunta
acabo de comenzar la construcción de una aplicación utilizando “XihSolutions.DotMSN.dll” Versión: 2.0.0.40909,
Mi problema es que no está disparando el evento “Nameserver_SignedIn”. No estoy seguro si estoy haciendo algo mal. Su ayuda será de gran ayuda.
void Nameserver_SignedIn (remitente del objeto, EventArgs e) { arrojar nueva Excepción ( "Firmado usuario en"); }
private string message = string.Empty;
void NameserverProcessor_ConnectionEstablished(object sender, EventArgs e)
{
message = "Connected";
SetMessage();
}
void SetMessage()
{
if (tbMessage.InvokeRequired)
tbMessage. Invoke(new ThreadStart(SetMessage));
else
tbMessage.Text += Environment.NewLine+ message;
}
private void btnSingIn_Click(object sender, EventArgs e)
{
if (messenger.Connected)
{
// SetStatus("Disconnecting from server");
messenger.Disconnect();
}
// set the credentials, this is ofcourse something every DotMSN program will need to
// implement.
messenger.Credentials.Account = tbUserName.Text;
messenger.Credentials.Password = tbPwd.Text;
// inform the user what is happening and try to connecto to the messenger network.
//SetStatus("Connecting to server");
messenger.Connect();
}
Solución
Es posible utilizar en lugar MSNPSharp - DotMSN es viejo y no puede soportar el protocolo MSN actual. No enlace está aquí:
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow