Beispiel #1
0
        public string GetDisplayNameOrAor(string uri)
        {
            ParticipantLog log = this.FindParticipantLog(uri);

            if (log != null)
            {
                return(log.DisplayNameOrAor);
            }

            return(Helpers.GetAor(uri));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
            }
        }