private void HandlePresenceUpdateResponse(PresenceChangeRq presenceChangeRq, PresenceChangeRs presenceChangeRs, Exception ex) { if (ex == null) { Logger.Debug("Successfully updated presence : " + _currentUserPresence); } else { Logger.Error("Failed to update presence : " + ex.Message, ex); } }
public Response process(Request req) { var request = (PresenceChangeRq)req; var response = new PresenceChangeRs(); try { _appContext.RosterManager.ProcessPresenceChange(request); } catch (Exception e) { Logger.Error("Failed to process presence change : " + e.Message, e); response.error = "UNKNOWN_ERROR"; response.errorMessage = "Failed to process presence change"; } return(response); }