public string GetDisplayNameOrAor(string uri) { ParticipantLog log = this.FindParticipantLog(uri); if (log != null) { return(log.DisplayNameOrAor); } return(Helpers.GetAor(uri)); }
protected ParticipantLog GetPartipantLog(string uri) { ParticipantLog log = this.FindParticipantLog(uri); if (log == null) { log = new ParticipantLog(uri, this.PartipantLogs.Count); this.PartipantLogs.Add(log); } return(log); }
void _IUccSessionEvents.OnRemoveParticipant(IUccSession eventSource, IUccOperationProgressEvent eventData) { ParticipantLog log = this.GetPartipantLog(GetParticipantUri(eventData.OriginalOperationContext.Context)); if (Helpers.IsOperationCompleteFailed(eventData)) { log.SetState(PartipantLogState.RemoveFailed, eventData.StatusCode); } if (Helpers.IsOperationCompleteOk(eventData)) { log.State = PartipantLogState.RemoveSuccess; } }