Joutsen Logging v0.5.0+22-gec3d058
Public Member Functions | Properties | List of all members
AssemblyScope Class Reference

A scope implementation that represents an assembly. More...

Public Member Functions

 AssemblyScope (Assembly assembly)
 Creates a new instance for an assembly. More...
 
 AssemblyScope (Type containedType)
 Creates a new instance using a types assembly. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the scope into a string. More...
 
override string ToString ()
 
Map< string, string > ToNamedStrings (string format, IFormatProvider formatProvider)
 Creates a map of key value pairs which can be used to write the scope in a structured way. More...
 
Map< string, string > ToNamedStrings (string format, IFormatProvider formatProvider)
 Creates a map of key value pairs which can be used to write the scope in a structured way. More...
 

Properties

Assembly Assembly [get]
 The assembly this scope represents. More...
 

Detailed Description

A scope implementation that represents an assembly.

Since
Unrelesed

Constructor & Destructor Documentation

◆ AssemblyScope() [1/2]

AssemblyScope.AssemblyScope ( Assembly  assembly)

Creates a new instance for an assembly.

◆ AssemblyScope() [2/2]

AssemblyScope.AssemblyScope ( Type  containedType)

Creates a new instance using a types assembly.

Member Function Documentation

◆ ToNamedStrings()

Map< string, string > AssemblyScope.ToNamedStrings ( string  format,
IFormatProvider  formatProvider 
)

Creates a map of key value pairs which can be used to write the scope in a structured way.

Parameters
formatthe string that defines the output format for the scope
formatProviderprovides localization information to format the scopes information
Returns
a map of names and values that make up the information of the scope

Implements Scope.

◆ ToString() [1/2]

override string AssemblyScope.ToString ( )

◆ ToString() [2/2]

string AssemblyScope.ToString ( string  format,
IFormatProvider  formatProvider 
)

Formats the scope into a string.

Parameters
formatthe format to use to represent the scope
formatProvidera format provider used for lacation specific representation
Returns
a string representation according to the provided format
Remarks
Supports format 'f' for the fullname and 'n' for the name only.

Property Documentation

◆ Assembly

Assembly AssemblyScope.Assembly
get

The assembly this scope represents.