Messenger.Default.Send is not working asynchronously, right? So I expect that sqlCSBuilder.UserID = _userId will be executed after message is processed in MainWindow. But because it is not processed in MainWindow at all, exception is thrown on this line, because _userId is not set by ParseCredentials callback method...
↧