WriteCloseGroup() статический публичный Метод

Binary writes a multicast closing entry.
static public WriteCloseGroup ( CKBinaryWriter w, Guid monitorId, LogEntryType previousEntryType, DateTimeStamp previousLogTime, int depth, LogLevel level, DateTimeStamp closeTime, IReadOnlyList conclusions ) : void
w CKBinaryWriter Binary writer to use.
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 group (number of opened groups above).
level LogLevel Log level of the log entry.
closeTime DateTimeStamp Time stamp of the group closing.
conclusions IReadOnlyList Group conclusions.
Результат void
 /// <summary>
 /// Writes a group closing entry as a uni-cast compact entry or as a multi-cast one if needed.
 /// </summary>
 /// <param name="g">The group.</param>
 /// <param name="conclusions">Group's conclusions.</param>
 /// <param name="adapter">Multi-cast information to be able to write multi-cast entry when needed.</param>
 public void UnicastWriteCloseGroup(IActivityLogGroup g, IReadOnlyList <ActivityLogGroupConclusion>?conclusions, IMulticastLogInfo adapter)
 {
     BeforeWriteEntry();
     Debug.Assert(_writer != null);
     LogEntry.WriteCloseGroup(_writer, adapter.GrandOutputId, adapter.MonitorId, adapter.PreviousEntryType, adapter.PreviousLogTime, adapter.GroupDepth, g.Data.Level, g.CloseLogTime, conclusions);
     AfterWriteEntry();
 }
Пример #2
0
 /// <summary>
 /// Writes a group closing entry as a uni-cast compact entry or as a multi-cast one if needed.
 /// </summary>
 /// <param name="g">The group.</param>
 /// <param name="conclusions">Group's conclusions.</param>
 /// <param name="adapter">Multi-cast information to be able to write multi-cast entry when needed.</param>
 public void UnicastWriteCloseGroup(IActivityLogGroup g, IReadOnlyList <ActivityLogGroupConclusion> conclusions, IMulticastLogInfo adapter)
 {
     BeforeWrite();
     LogEntry.WriteCloseGroup(_writer, adapter.MonitorId, adapter.PreviousEntryType, adapter.PreviousLogTime, adapter.GroupDepth, g.GroupLevel, g.CloseLogTime, conclusions);
     AfterWrite();
 }