Table of Contents

Class MsmqTraceListenerData

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration
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 string

The name for the represented trace listener.

queuePath string

The path name for the represented trace listener.

formatterName string

The 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 string

The name for the represented trace listener.

queuePath string

The path name for the represented trace listener.

formatterName string

The formatter name for the represented trace listener.

messagePriority MessagePriority

The priority for the represented trace listener.

recoverable bool

The recoverable flag for the represented trace listener.

timeToReachQueue TimeSpan

The timeToReachQueue for the represented trace listener.

timeToBeReceived TimeSpan

The timeToReachQueue for the represented trace listener.

useAuthentication bool

The use authentication flag for the represented trace listener.

useDeadLetterQueue bool

The use dead letter flag for the represented trace listener.

useEncryption bool

The use encryption flag for the represented trace listener.

transactionType MessageQueueTransactionType

The 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 string

The name for the represented trace listener.

queuePath string

The path name for the represented trace listener.

formatterName string

The formatter name for the represented trace listener.

messagePriority MessagePriority

The priority for the represented trace listener.

recoverable bool

The recoverable flag for the represented trace listener.

timeToReachQueue TimeSpan

The timeToReachQueue for the represented trace listener.

timeToBeReceived TimeSpan

The timeToReachQueue for the represented trace listener.

useAuthentication bool

The use authentication flag for the represented trace listener.

useDeadLetterQueue bool

The use dead letter flag for the represented trace listener.

useEncryption bool

The use encryption flag for the represented trace listener.

transactionType MessageQueueTransactionType

The transaction type for the represented trace listener.

traceOutputOptions TraceOptions

The trace output options for the represented trace listener.

filter SourceLevels

The 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

bool

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

TimeSpan

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

TimeSpan

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

bool

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

bool

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

bool

Properties

Formatter

Gets or sets formatter name.

public string Formatter { get; set; }

Property Value

string

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

string

Recoverable

Gets or sets the recoverable value.

public bool Recoverable { get; set; }

Property Value

bool

TimeToBeReceived

Gets or sets the time to be received.

public TimeSpan TimeToBeReceived { get; set; }

Property Value

TimeSpan

TimeToReachQueue

Gets or sets the time to reach queue.

public TimeSpan TimeToReachQueue { get; set; }

Property Value

TimeSpan

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

bool

UseDeadLetterQueue

Gets or sets the use dead letter value.

public bool UseDeadLetterQueue { get; set; }

Property Value

bool

UseEncryption

Gets or sets the use encryption value.

public bool UseEncryption { get; set; }

Property Value

bool

Methods

CoreBuildTraceListener(LoggingSettings)

Builds the TraceListener object represented by this configuration object.

protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)

Parameters

settings LoggingSettings

The logging configuration settings.

Returns

TraceListener

A MsmqTraceListener.