private void ProfileEvent(IRTCProfileEvent2 profileEvent) { if (profileEvent.EventType == RTC_PROFILE_EVENT_TYPE.RTCPFET_PROFILE_GET) // getprofile metodu çaðýrýldýðýnda. profil oluþmuþ { if (Yardim.Basarili(profileEvent.StatusCode)) // profil oluþturulmuþ mu? { this.profil = (IRTCProfile2)profileEvent.Profile; // profil nesnesine aktarýlýyor this.profil.AllowedAuth = Sabitler.RTC_DOGRULAMA_SABITLERI; // Sunucu doðrulama istesin this.KayitYap(); } else { this.BulunmaDurumuPasif(); this.anaPencere.OturumKapandi(); this.anaPencere.MesajGoster("Giriþ Baþarýsýz!", "Uyarý"); } } }
void OnRTCProfileEvent(IRTCProfileEvent2 profileEvent) { Trace.WriteLine("Entering RTCPresenceCore.OnRTCProfileEvent " + profileEvent.EventType); if (profileEvent.EventType == RTC_PROFILE_EVENT_TYPE.RTCPFET_PROFILE_GET) { if (RTCHelp.IsSucceeded(profileEvent.StatusCode)) { this.profile = (IRTCProfile2)profileEvent.Profile; this.profile.AllowedAuth = RTCConst.RTCAU_USE_LOGON_CRED | RTCConst.RTCAU_NTLM | RTCConst.RTCAU_KERBEROS; this.DoRegister(); } else { this.DoDisablePresence(); this.presenceUI.OnLoggedOff(); this.presenceUI.ShowMessage("Logon failed!", "Warning"); } } }