BufferModeSettings(String, Int32, Int32, Int32, TimeSpan, TimeSpan, Int32) Construtor
Definição
Inicializa uma nova instância da classe BufferModeSettings usando as configurações especificadas.Initializes a new instance of the BufferModeSettings class using specified settings.
public:
BufferModeSettings(System::String ^ name, int maxBufferSize, int maxFlushSize, int urgentFlushThreshold, TimeSpan regularFlushInterval, TimeSpan urgentFlushInterval, int maxBufferThreads);
public BufferModeSettings (string name, int maxBufferSize, int maxFlushSize, int urgentFlushThreshold, TimeSpan regularFlushInterval, TimeSpan urgentFlushInterval, int maxBufferThreads);
new System.Web.Configuration.BufferModeSettings : string * int * int * int * TimeSpan * TimeSpan * int -> System.Web.Configuration.BufferModeSettings
Public Sub New (name As String, maxBufferSize As Integer, maxFlushSize As Integer, urgentFlushThreshold As Integer, regularFlushInterval As TimeSpan, urgentFlushInterval As TimeSpan, maxBufferThreads As Integer)
Parâmetros
- name
- String
O nome do objeto BufferModeSettings sendo criado.The name of the BufferModeSettings object being created.
- maxBufferSize
- Int32
O número máximo de eventos armazenados em buffer ao mesmo tempo.The maximum number of events buffered at one time. O valor deve ser maior que zero.The value must be greater than zero.
- maxFlushSize
- Int32
O número máximo de eventos por liberação de buffer.The maximum number of events per buffer flush. Deve ser maior que zero.Must be greater than zero.
- urgentFlushThreshold
- Int32
O número de eventos armazenados em buffer antes que uma liberação de buffer seja acionada.The number of events buffered before a buffer flush is triggered. O valor deve ser maior que zero e menor ou igual a maxBufferSize.The value must be greater than zero and less than or equal to maxBufferSize.
- regularFlushInterval
- TimeSpan
O intervalo de tempo padrão entre as liberações de buffer.The standard amount of time between buffer flushes. O valor pode ser definindo como infinito definindo-o como MaxValue tiques.The value can be made infinite by setting it to MaxValue ticks.
- urgentFlushInterval
- TimeSpan
O intervalo mínimo de tempo que pode decorrer entre liberações do buffer.The minimum length of time that can pass between buffer flushes. O valor deve ser menor ou igual a regularFlushInterval.The value must be less than or equal to regularFlushInterval.
- maxBufferThreads
- Int32
O número máximo de threads de liberação de buffer que podem estar ativos simultaneamente.The maximum number of buffer-flushing threads that can be active at one time.
Exemplos
O exemplo de código a seguir mostra como usar o BufferModeSettings Construtor.The following code example shows how to use the BufferModeSettings constructor. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.
// Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error Log",
1024, 256, 512, new TimeSpan(0, 30, 0), new TimeSpan(0, 5, 0), 2));
' Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error Log", _
1024, 256, 512, new TimeSpan(0, 30, 0), new TimeSpan(0, 5, 0), 2))