PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Type­SourceLogging­Type­Source
Open sandboxFocus

Constructor LoggingTypeSource

LoggingTypeSource(LoggingNamespaceSource, Type)

Creates an instance of LoggingTypeSource.

Declaration
protected LoggingTypeSource(LoggingNamespaceSource parent, Type sourceType)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

Type sourceType

The type represented by the new LoggingTypeSource.

LoggingTypeSource(LoggingNamespaceSource, String, Type)

Creates an instance of LoggingTypeSource.

Declaration
protected LoggingTypeSource(LoggingNamespaceSource parent, string shortName, Type sourceType = null)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

String shortName

Name of the log source represented by the new LoggingTypeSource. This is usually the FullName of sourceType.

Type sourceType

Optional. The type that this type source is associated with. This is usually the type that the source is logging.