//IM登录
lcRealtime.CreateClientAsync (myObjectId).ContinueWith (t => {
if (t.IsFaulted || t.IsCanceled) {
hasFinishedLoading = true;
return;
}
if (t.Result != null) {
app.lcClient = t.Result;
app.lcClient.OnInvited += Myself_OnInvited;
app.lcClient.OnMessageReceived += Myself_OnMessageReceived;
app.lcClient.CurrentConfiguration.AutoRead =false;
}
});
“app.lcClient.CurrentConfiguration.AutoRead =false” 这一句会报错。