void mNativeEventsListener_onRegistrationEvent(object sender, SipRegistrationEventArgs e) { this.Dispatcher.BeginInvoke((System.Threading.ThreadStart) delegate { mViewModel.RegistrationState = e.State; if (e.SipCode > 299 || e.State == SipSessionState.Error) { mViewModel.ConnectionStateText = e.Description; } }); }
void mNativeEventsListener_onRegistrationEvent(object sender, SipRegistrationEventArgs e) { this.Dispatcher.BeginInvoke((System.Threading.ThreadStart)delegate { mViewModel.RegistrationState = e.State; if (e.SipCode > 299 || e.State == SipSessionState.Error) { mViewModel.ConnectionStateText = e.Description; } }); }