Class MsmqTraceListenerData
- Assembly
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
Represents the configuration settings that describe a MsmqTraceListener.
[SecurityCritical]
public class MsmqTraceListenerData : TraceListenerData
- Inheritance
-
MsmqTraceListenerData
- Inherited Members
Constructors
MsmqTraceListenerData()
Initializes a new instance of the MsmqTraceListenerData class with default values.
public MsmqTraceListenerData()
MsmqTraceListenerData(string, string, string)
Initializes a new instance of the MsmqTraceListenerData class with name, path and formatter name.
public MsmqTraceListenerData(string name, string queuePath, string formatterName)
Parameters
name
stringThe name for the represented trace listener.
queuePath
stringThe path name for the represented trace listener.
formatterName
stringThe formatter name for the represented trace listener.
MsmqTraceListenerData(string, string, string, MessagePriority, bool, TimeSpan, TimeSpan, bool, bool, bool, MessageQueueTransactionType)
Initializes a new instance of the MsmqTraceListenerData class.
public MsmqTraceListenerData(string name, string queuePath, string formatterName, MessagePriority messagePriority, bool recoverable, TimeSpan timeToReachQueue, TimeSpan timeToBeReceived, bool useAuthentication, bool useDeadLetterQueue, bool useEncryption, MessageQueueTransactionType transactionType)
Parameters
name
stringThe name for the represented trace listener.
queuePath
stringThe path name for the represented trace listener.
formatterName
stringThe formatter name for the represented trace listener.
messagePriority
MessagePriorityThe priority for the represented trace listener.
recoverable
boolThe recoverable flag for the represented trace listener.
timeToReachQueue
TimeSpanThe timeToReachQueue for the represented trace listener.
timeToBeReceived
TimeSpanThe timeToReachQueue for the represented trace listener.
useAuthentication
boolThe use authentication flag for the represented trace listener.
useDeadLetterQueue
boolThe use dead letter flag for the represented trace listener.
useEncryption
boolThe use encryption flag for the represented trace listener.
transactionType
MessageQueueTransactionTypeThe transaction type for the represented trace listener.
MsmqTraceListenerData(string, string, string, MessagePriority, bool, TimeSpan, TimeSpan, bool, bool, bool, MessageQueueTransactionType, TraceOptions, SourceLevels)
Initializes a new instance of the MsmqTraceListenerData class.
public MsmqTraceListenerData(string name, string queuePath, string formatterName, MessagePriority messagePriority, bool recoverable, TimeSpan timeToReachQueue, TimeSpan timeToBeReceived, bool useAuthentication, bool useDeadLetterQueue, bool useEncryption, MessageQueueTransactionType transactionType, TraceOptions traceOutputOptions, SourceLevels filter)
Parameters
name
stringThe name for the represented trace listener.
queuePath
stringThe path name for the represented trace listener.
formatterName
stringThe formatter name for the represented trace listener.
messagePriority
MessagePriorityThe priority for the represented trace listener.
recoverable
boolThe recoverable flag for the represented trace listener.
timeToReachQueue
TimeSpanThe timeToReachQueue for the represented trace listener.
timeToBeReceived
TimeSpanThe timeToReachQueue for the represented trace listener.
useAuthentication
boolThe use authentication flag for the represented trace listener.
useDeadLetterQueue
boolThe use dead letter flag for the represented trace listener.
useEncryption
boolThe use encryption flag for the represented trace listener.
transactionType
MessageQueueTransactionTypeThe transaction type for the represented trace listener.
traceOutputOptions
TraceOptionsThe trace output options for the represented trace listener.
filter
SourceLevelsThe filter for the represented trace listener.
Fields
DefaultPriority
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The Priority value for the Priority property.
public const MessagePriority DefaultPriority = 3
Field Value
- MessagePriority
DefaultRecoverable
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the Recoverable property.
public const bool DefaultRecoverable = false
Field Value
DefaultTimeToBeReceived
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the TimeToBeReceived property.
public static readonly TimeSpan DefaultTimeToBeReceived
Field Value
DefaultTimeToReachQueue
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the TimeToReachQueue property.
public static readonly TimeSpan DefaultTimeToReachQueue
Field Value
DefaultTransactionType
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the TransactionType property.
public const MessageQueueTransactionType DefaultTransactionType = 0
Field Value
- MessageQueueTransactionType
DefaultUseAuthentication
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the UseAuthentication property.
public const bool DefaultUseAuthentication = false
Field Value
DefaultUseDeadLetter
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the UseDeadLetter property.
public const bool DefaultUseDeadLetter = false
Field Value
DefaultUseEncryption
This field supports the Enterprise Library infrastructure and is not intended to be used directly from your code. The default value for the UseEncryption property.
public const bool DefaultUseEncryption = false
Field Value
Properties
Formatter
Gets or sets formatter name.
public string Formatter { get; set; }
Property Value
MessagePriority
Gets or sets the message priority.
public MessagePriority MessagePriority { get; set; }
Property Value
- MessagePriority
QueuePath
Gets or sets the message queue path.
public string QueuePath { get; set; }
Property Value
Recoverable
Gets or sets the recoverable value.
public bool Recoverable { get; set; }
Property Value
TimeToBeReceived
Gets or sets the time to be received.
public TimeSpan TimeToBeReceived { get; set; }
Property Value
TimeToReachQueue
Gets or sets the time to reach queue.
public TimeSpan TimeToReachQueue { get; set; }
Property Value
TransactionType
Gets or sets the transaction type.
public MessageQueueTransactionType TransactionType { get; set; }
Property Value
- MessageQueueTransactionType
UseAuthentication
Gets or sets the use authentication value.
public bool UseAuthentication { get; set; }
Property Value
UseDeadLetterQueue
Gets or sets the use dead letter value.
public bool UseDeadLetterQueue { get; set; }
Property Value
UseEncryption
Gets or sets the use encryption value.
public bool UseEncryption { get; set; }
Property Value
Methods
CoreBuildTraceListener(LoggingSettings)
Builds the TraceListener object represented by this configuration object.
protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)
Parameters
settings
LoggingSettingsThe logging configuration settings.