CreateMulticastCloseGroup() public static method

Creates a ILogEntry for the closing of a group.
public static CreateMulticastCloseGroup ( Guid monitorId, LogEntryType previousEntryType, DateTimeStamp previousLogTime, int depth, DateTimeStamp t, LogLevel level, IReadOnlyList c ) : IMulticastLogEntry
monitorId Guid Identifier of the monitor.
previousEntryType LogEntryType Log type of the previous entry in the monitor..
previousLogTime DateTimeStamp Time stamp of the previous entry in the monitor.
depth int Depth of the line (number of opened groups above).
t DateTimeStamp Time stamp of the log entry.
level LogLevel Log level of the log entry.
c IReadOnlyList Group conclusions.
return IMulticastLogEntry
        void IActivityMonitorClient.OnGroupClosed(IActivityLogGroup group, IReadOnlyList <ActivityLogGroupConclusion> conclusions)
        {
            var h = EnsureChannel();

            if (h != null)
            {
                IMulticastLogEntry e = LogEntry.CreateMulticastCloseGroup(_monitorSource.UniqueId, _prevLogType, _prevlogTime, _currentGroupDepth, group.CloseLogTime, group.GroupLevel, conclusions);
                h.Handle(new GrandOutputEventInfo(e, _monitorSource.Topic));
                --_currentGroupDepth;
                _prevlogTime = group.CloseLogTime;
                _prevLogType = LogEntryType.CloseGroup;
            }
        }
        void IActivityMonitorClient.OnGroupClosed(IActivityLogGroup group, IReadOnlyList <ActivityLogGroupConclusion>?conclusions)
        {
            if (_central.IsDisposed)
            {
                return;
            }
            Debug.Assert(_monitorSource != null, "Since we are called by the monitor...");
            IMulticastLogEntry e = LogEntry.CreateMulticastCloseGroup(_central.GrandOutpuId,
                                                                      _monitorSource.UniqueId,
                                                                      _prevLogType,
                                                                      _prevlogTime,
                                                                      _currentGroupDepth,
                                                                      group.CloseLogTime,
                                                                      group.Data.Level,
                                                                      conclusions);

            _central.Sink.Handle(e);
            --_currentGroupDepth;
            _prevlogTime = group.CloseLogTime;
            _prevLogType = LogEntryType.CloseGroup;
        }