BufferModeSettings 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이벤트 공급자에 대한 ASP.NET 이벤트 버퍼링 설정을 구성합니다. 이 클래스는 상속할 수 없습니다.
public ref class BufferModeSettings sealed : System::Configuration::ConfigurationElement
public sealed class BufferModeSettings : System.Configuration.ConfigurationElement
type BufferModeSettings = class
inherit ConfigurationElement
Public NotInheritable Class BufferModeSettings
Inherits ConfigurationElement
- 상속
예제
다음 구성 파일 발췌에서는 클래스의 여러 속성에 대한 값을 선언적으로 지정하는 BufferModeSettings 방법을 보여줍니다.
<healthMonitoring>
<bufferModes>
<add name="Critical Notification"
maxBufferSize="100"
maxFlushSize="20"
urgentFlushThreshold="1"
regularFlushInterval="Infinite"
urgentFlushInterval="00:01:00"
maxBufferThreads="1"
/>
<add name="Notification"
maxBufferSize="300"
maxFlushSize="20"
urgentFlushThreshold="1"
regularFlushInterval="Infinite"
urgentFlushInterval="00:01:00"
maxBufferThreads="1"
/>
<add name="Analysis"
maxBufferSize="1000"
maxFlushSize="100"
urgentFlushThreshold="100"
regularFlushInterval="00:05:00"
urgentFlushInterval="00:01:00"
maxBufferThreads="1"
/>
<add name="Logging"
maxBufferSize="1000"
maxFlushSize="200"
urgentFlushThreshold="800"
regularFlushInterval="00:30:00"
urgentFlushInterval="00:05:00"
maxBufferThreads="1"
/>
</bufferModes>
</healthMonitoring>
설명
이 BufferModeSettings 클래스는 위험, 알림, 분석 및 로깅과 같은 이벤트 공급자에 대한 역할을 정의하는 데 사용됩니다. 각 역할은 해당 역할에 맞게 이벤트를 다르게 버퍼링합니다. 예를 들어 중요 역할은 , MaxBufferSize및 MaxFlushSize 속성을 작게 유지하는 UrgentFlushInterval반면 분석 역할은 해당 속성을 더 높은 값으로 설정합니다.
이 클래스는 구성 파일 요소에 bufferModes 해당합니다.
생성자
| Name | Description |
|---|---|
| BufferModeSettings(String, Int32, Int32, Int32, TimeSpan, TimeSpan, Int32) |
지정된 설정을 사용하여 클래스의 새 인스턴스를 BufferModeSettings 초기화합니다. |
속성
| Name | Description |
|---|---|
| CurrentConfiguration |
현재 Configuration 인스턴스가 속한 구성 계층 구조를 나타내는 최상위 ConfigurationElement 인스턴스에 대한 참조를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| ElementInformation |
사용자 지정할 수 없는 정보와 ElementInformation 개체의 기능이 포함된 ConfigurationElement 개체를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| ElementProperty |
ConfigurationElementProperty 개체 자체를 나타내는 ConfigurationElement 개체를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| EvaluationContext |
ContextInformation 개체에 대한 ConfigurationElement 개체를 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| HasContext |
CurrentConfiguration 속성이 |
| Item[ConfigurationProperty] |
이 구성 요소의 속성 또는 특성을 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| Item[String] |
이 구성 요소의 속성, 특성 또는 자식 요소를 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| LockAllAttributesExcept |
잠긴 특성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockAllElementsExcept |
잠긴 요소의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockAttributes |
잠긴 특성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockElements |
잠긴 요소의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| LockItem |
요소가 잠겨 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ConfigurationElement) |
| MaxBufferSize |
한 번에 버퍼링할 수 있는 최대 이벤트 수를 가져오거나 설정합니다. |
| MaxBufferThreads |
한 번에 활성화할 수 있는 최대 플러시 스레드 수를 가져오거나 설정합니다. |
| MaxFlushSize |
플러시당 최대 이벤트 수를 가져오거나 설정합니다. |
| Name |
개체의 BufferModeSettings 이름을 가져오거나 설정합니다. |
| Properties |
속성의 컬렉션을 가져옵니다. (다음에서 상속됨 ConfigurationElement) |
| RegularFlushInterval |
버퍼 플러시 사이의 시간을 가져오거나 설정합니다. |
| UrgentFlushInterval |
버퍼 플러시 간에 전달할 수 있는 최소 시간을 가져오거나 설정합니다. |
| UrgentFlushThreshold |
플러시가 트리거되기 전에 버퍼링할 수 있는 이벤트 수를 가져오거나 설정합니다. |