Open sandboxFocus

Method GetFlashtraceSource

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.