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

LoggingTypeSource Constructor

LoggingTypeSource(LoggingNamespaceSource, Type)

Creates an instance of LoggingTypeSource.

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

The parent LoggingNamespaceSource.

System.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.

System.String shortName

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

System.Type sourceType

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