예제 #1
0
        public EnableTraceParametersV1
        (
            uint?version        = null,
            uint?enableProperty = null,
            uint?controlFlags   = null,
            Guid?sourceId       = null,
            EventFilterDescriptor *enableFilterDesc = null
        ) : this()
        {
            if (version is not null)
            {
                Version = version.Value;
            }

            if (enableProperty is not null)
            {
                EnableProperty = enableProperty.Value;
            }

            if (controlFlags is not null)
            {
                ControlFlags = controlFlags.Value;
            }

            if (sourceId is not null)
            {
                SourceId = sourceId.Value;
            }

            if (enableFilterDesc is not null)
            {
                EnableFilterDesc = enableFilterDesc;
            }
        }
        public EventTracePropertiesV2
        (
            WnodeHeader?wnode    = null,
            uint?bufferSize      = null,
            uint?minimumBuffers  = null,
            uint?maximumBuffers  = null,
            uint?maximumFileSize = null,
            uint?logFileMode     = null,
            uint?flushTimer      = null,
            uint?enableFlags     = null,
            EventTracePropertiesV2Union1?anonymous1 = null,
            uint?numberOfBuffers     = null,
            uint?freeBuffers         = null,
            uint?eventsLost          = null,
            uint?buffersWritten      = null,
            uint?logBuffersLost      = null,
            uint?realTimeBuffersLost = null,
            void *loggerThreadId     = null,
            uint?logFileNameOffset   = null,
            uint?loggerNameOffset    = null,
            EventTracePropertiesV2Union2?anonymous2 = null,
            uint?filterDescCount = null,
            EventFilterDescriptor *filterDesc       = null,
            EventTracePropertiesV2Union3?anonymous3 = null,
            int?ageLimit       = null,
            int?flushThreshold = null,
            EventTracePropertiesV2Union2Union?anonymous = null,
            uint?v2Control          = null,
            uint?versionNumber      = null,
            ulong?v2Options         = null,
            uint?wow                = null,
            uint?qpcDeltaTracking   = null,
            uint?largeMdlPages      = null,
            uint?excludeKernelStack = null
        ) : this()
        {
            if (wnode is not null)
            {
                Wnode = wnode.Value;
            }

            if (bufferSize is not null)
            {
                BufferSize = bufferSize.Value;
            }

            if (minimumBuffers is not null)
            {
                MinimumBuffers = minimumBuffers.Value;
            }

            if (maximumBuffers is not null)
            {
                MaximumBuffers = maximumBuffers.Value;
            }

            if (maximumFileSize is not null)
            {
                MaximumFileSize = maximumFileSize.Value;
            }

            if (logFileMode is not null)
            {
                LogFileMode = logFileMode.Value;
            }

            if (flushTimer is not null)
            {
                FlushTimer = flushTimer.Value;
            }

            if (enableFlags is not null)
            {
                EnableFlags = enableFlags.Value;
            }

            if (anonymous1 is not null)
            {
                Anonymous1 = anonymous1.Value;
            }

            if (numberOfBuffers is not null)
            {
                NumberOfBuffers = numberOfBuffers.Value;
            }

            if (freeBuffers is not null)
            {
                FreeBuffers = freeBuffers.Value;
            }

            if (eventsLost is not null)
            {
                EventsLost = eventsLost.Value;
            }

            if (buffersWritten is not null)
            {
                BuffersWritten = buffersWritten.Value;
            }

            if (logBuffersLost is not null)
            {
                LogBuffersLost = logBuffersLost.Value;
            }

            if (realTimeBuffersLost is not null)
            {
                RealTimeBuffersLost = realTimeBuffersLost.Value;
            }

            if (loggerThreadId is not null)
            {
                LoggerThreadId = loggerThreadId;
            }

            if (logFileNameOffset is not null)
            {
                LogFileNameOffset = logFileNameOffset.Value;
            }

            if (loggerNameOffset is not null)
            {
                LoggerNameOffset = loggerNameOffset.Value;
            }

            if (anonymous2 is not null)
            {
                Anonymous2 = anonymous2.Value;
            }

            if (filterDescCount is not null)
            {
                FilterDescCount = filterDescCount.Value;
            }

            if (filterDesc is not null)
            {
                FilterDesc = filterDesc;
            }

            if (anonymous3 is not null)
            {
                Anonymous3 = anonymous3.Value;
            }

            if (ageLimit is not null)
            {
                AgeLimit = ageLimit.Value;
            }

            if (flushThreshold is not null)
            {
                FlushThreshold = flushThreshold.Value;
            }

            if (anonymous is not null)
            {
                Anonymous = anonymous.Value;
            }

            if (v2Control is not null)
            {
                V2Control = v2Control.Value;
            }

            if (versionNumber is not null)
            {
                VersionNumber = versionNumber.Value;
            }

            if (v2Options is not null)
            {
                V2Options = v2Options.Value;
            }

            if (wow is not null)
            {
                Wow = wow.Value;
            }

            if (qpcDeltaTracking is not null)
            {
                QpcDeltaTracking = qpcDeltaTracking.Value;
            }

            if (largeMdlPages is not null)
            {
                LargeMdlPages = largeMdlPages.Value;
            }

            if (excludeKernelStack is not null)
            {
                ExcludeKernelStack = excludeKernelStack.Value;
            }
        }