MetalamaAPI documentationFlashtrace APIFlashtraceFlashtrace­ExtensionsGet­Flashtrace­Source
Open sandboxFocus

FlashtraceExtensions.GetFlashtraceSource Method

GetFlashtraceSource(IServiceProvider, Type, FlashtraceRole)

Declaration
public static FlashtraceSource GetFlashtraceSource(this IServiceProvider serviceProvider, Type type, FlashtraceRole role = null)
Parameters
Type Name Description
IServiceProvider serviceProvider
Type type
FlashtraceRole role
Returns
Type Description
FlashtraceSource

GetFlashtraceSource(IServiceProvider, String, FlashtraceRole)

Declaration
public static FlashtraceSource GetFlashtraceSource(this IServiceProvider serviceProvider, string sourceName, FlashtraceRole role = null)
Parameters
Type Name Description
IServiceProvider serviceProvider
String sourceName
FlashtraceRole role
Returns
Type Description
FlashtraceSource

GetFlashtraceSource(IFlashtraceLoggerFactory, Type, FlashtraceRole)

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceLoggerFactory loggerFactory, Type type, FlashtraceRole role = null)
Parameters
Type Name Description
IFlashtraceLoggerFactory loggerFactory
Type type
FlashtraceRole role
Returns
Type Description
FlashtraceSource

GetFlashtraceSource(IFlashtraceLoggerFactory, String, FlashtraceRole)

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceLoggerFactory loggerFactory, string sourceName, FlashtraceRole role = null)
Parameters
Type Name Description
IFlashtraceLoggerFactory loggerFactory
String sourceName
FlashtraceRole role
Returns
Type Description
FlashtraceSource

GetFlashtraceSource(IFlashtraceRoleLoggerFactory, Type)

Gets a FlashtraceSource for a given role and Type.

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceRoleLoggerFactory factory, Type type)
Parameters
Type Name Description
IFlashtraceRoleLoggerFactory factory

An IFlashtraceRoleLoggerFactory.

Type type

The type that will emit the records.

Returns
Type Description
FlashtraceSource

A FlashtraceSource for type.

GetFlashtraceSource(IFlashtraceRoleLoggerFactory, String)

Gets a FlashtraceSource for a given role and sourceName.

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceRoleLoggerFactory factory, string sourceName)
Parameters
Type Name Description
IFlashtraceRoleLoggerFactory factory

An IFlashtraceRoleLoggerFactory.

String sourceName

Log source name to be used by the backend. Not all backends support creating sources by name.

Returns
Type Description
FlashtraceSource

A FlashtraceSource for sourceName.

GetFlashtraceSource(IFlashtraceRoleLoggerFactory)

Gets a FlashtraceSource for a given role and for the calling type.

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceRoleLoggerFactory factory)
Parameters
Type Name Description
IFlashtraceRoleLoggerFactory factory

An IFlashtraceRoleLoggerFactory.

Returns
Type Description
FlashtraceSource

A FlashtraceSource for the calling type.

GetFlashtraceSource(IFlashtraceRoleLoggerFactory, in CallerInfo)

Declaration
public static FlashtraceSource GetFlashtraceSource(this IFlashtraceRoleLoggerFactory factory, in CallerInfo callerInfo)
Parameters
Type Name Description
IFlashtraceRoleLoggerFactory factory
CallerInfo callerInfo
Returns
Type Description
FlashtraceSource