Esempio n. 1
0
        /// <summary>
        /// Set state on a request as to the size of logset we are working with.
        /// </summary>
        /// <param name="request">The request to set the logset size on.</param>
        public static void SetLogsetSize(LogsharkRequest request)
        {
            var metadataReader = new LogsetMetadataReader(request);

            request.Target.UncompressedSize = metadataReader.GetLogsetUncompressedSize();
            request.Target.CompressedSize   = metadataReader.GetLogsetCompressedSize();
            request.Target.ProcessedSize    = metadataReader.GetLogsetProcessedSize();
        }
Esempio n. 2
0
        /// <summary>
        /// Set state on a request as to what kind of logset we are working with.
        /// </summary>
        /// <param name="request">The request to set the LogsetType parameter on.</param>
        public static void SetLogsetType(LogsharkRequest request)
        {
            var metadataReader = new LogsetMetadataReader(request);

            request.RunContext.LogsetType = metadataReader.GetLogsetType();
        }