Beispiel #1
0
 /// <summary>
 /// Dispatch a descriptor message to a consumer by reading the fields in the correct order.
 /// </summary>
 /// <param name="decoder">  which wraps the encoded message ready for reading. </param>
 /// <param name="consumer"> to which the decoded fields should be passed. </param>
 public static void DispatchDescriptor(RecordingDescriptorDecoder decoder, IRecordingDescriptorConsumer consumer)
 {
     consumer.OnRecordingDescriptor(
         decoder.ControlSessionId(),
         decoder.CorrelationId(),
         decoder.RecordingId(),
         decoder.StartTimestamp(),
         decoder.StopTimestamp(),
         decoder.StartPosition(),
         decoder.StopPosition(),
         decoder.InitialTermId(),
         decoder.SegmentFileLength(),
         decoder.TermBufferLength(),
         decoder.MtuLength(),
         decoder.SessionId(),
         decoder.StreamId(),
         decoder.StrippedChannel(),
         decoder.OriginalChannel(),
         decoder.SourceIdentity());
 }