AppendBytes() 공개 정적인 메소드

public static AppendBytes ( ByteArray message, IEnumerable sdParams, LogEventInfo logEvent, string invalidNamesPattern, EncodingSet encodings ) : void
message ByteArray
sdParams IEnumerable
logEvent LogEventInfo
invalidNamesPattern string
encodings EncodingSet
리턴 void
        public static void AppendBytes(ByteArray message, IEnumerable <SdElement> sdElements, LogEventInfo logEvent, EncodingSet encodings)
        {
            var elements = sdElements
                           .Select(x => new { SdId = x.sdId, RenderedSdId = x.sdId.Render(logEvent), SdParams = x.sdParams })
                           .ToList();

            InternalLogDuplicatesPolicy.Apply(elements, x => x.RenderedSdId);

            elements
            .ForEach(elem =>
            {
                message.Append(LeftBracketBytes);
                elem.SdId.AppendBytes(message, elem.RenderedSdId, encodings);
                SdParam.AppendBytes(message, elem.SdParams, logEvent, SdIdToInvalidParamNamePattern.Map(elem.RenderedSdId), encodings);
                message.Append(RightBracketBytes);
            });
        }