public FileSetPosition TryReadBookmark()

in src/Serilog.Sinks.AzureDataExplorer/Durable/BookmarkFile.cs [35:56]


        public FileSetPosition TryReadBookmark()
        {
            if (m_bookmark.Length != 0)
            {
                m_bookmark.Position = 0;

                // Important not to dispose this StreamReader as the stream must remain open.
                var reader = new StreamReader(m_bookmark, Encoding.UTF8, false, 128);
                var current = reader.ReadLine();

                if (current != null)
                {
                    var parts = current.Split(new[] { ":::" }, StringSplitOptions.RemoveEmptyEntries);
                    if (parts.Length == 2)
                    {
                        return new FileSetPosition(long.Parse(parts[0]), parts[1]);
                    }
                }
            }

            return FileSetPosition.None;
        }