void ISaslCallbackHandler.Handle(ISaslCallback[] callbacks) { foreach ( ISaslCallback cb in callbacks ) { if ( cb is NameCallback ) { ((NameCallback)cb).Text = USERNAME; } else if ( cb is PasswordCallback ) { ((PasswordCallback)cb).Text = PASSWORD; } } }
public void Handle(ISaslCallback[] callbacks) { foreach ( ISaslCallback cb in callbacks ) { if ( cb is NameCallback ) { ((NameCallback)cb).Text = _session.Username; } else if ( cb is PasswordCallback ) { ((PasswordCallback)cb).Text = _session.Password; } } }
void ISaslCallbackHandler.Handle(ISaslCallback[] callbacks) { }