public void Write()

in Source/Tx.Bond/BinaryEventSource.cs [58:108]


        public void Write(
            DateTime occurenceTime,
            DateTime receiveTime,
            string protocol,
            string source,
            byte[] eventData,
            string manifestId)
        {
            if (this.IsEnabled())
            {
                if (protocol == null)
                {
                    throw new ArgumentNullException(nameof(protocol));
                }

                if (source == null)
                {
                    throw new ArgumentNullException(nameof(source));
                }

                if (eventData == null)
                {
                    throw new ArgumentNullException(nameof(eventData));
                }

                if (manifestId == null)
                {
                    throw new ArgumentNullException(nameof(manifestId));
                }

                // before 12:00 midnight January 1, 1601 C.E. UTC.
                if (occurenceTime.ToUniversalTime().Ticks < 504911232000000000L)
                {
                    occurenceTime = this.minDateTime;
                }

                // before 12:00 midnight January 1, 1601 C.E. UTC.
                if (receiveTime.ToUniversalTime().Ticks < 504911232000000000L)
                {
                    receiveTime = this.minDateTime;
                }

                this.WriteInternal(
                    occurenceTime,
                    receiveTime,
                    protocol,
                    source,
                    manifestId,
                    eventData);
            }
        }