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

Cretes a scope that consists of multiple child scopes. More...

Public Member Functions

 CombinedScope (params Scope[] childScopes)
 Creates a new instance with child scopes. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the scope into a string in the format <childscope>=<childscope_representation>[, <childscope>=<childscope_representation>]. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
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

System.Collections.Generic.IEnumerable< ScopeChildScopes [get]
 the child scopes that make up the combined one. More...
 

Detailed Description

Cretes a scope that consists of multiple child scopes.

Since
Unrelesed

Constructor & Destructor Documentation

◆ CombinedScope()

CombinedScope.CombinedScope ( params Scope[]  childScopes)

Creates a new instance with child scopes.

Member Function Documentation

◆ Equals()

override bool CombinedScope.Equals ( object  obj)

◆ GetHashCode()

override int CombinedScope.GetHashCode ( )

◆ ToNamedStrings()

Map< string, string > CombinedScope.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 CombinedScope.ToString ( )

◆ ToString() [2/2]

string CombinedScope.ToString ( string  format,
IFormatProvider  formatProvider 
)

Formats the scope into a string in the format <childscope>=<childscope_representation>[, <childscope>=<childscope_representation>].

Parameters
formatthe format to use to represent the scope. This is passed to all children.
formatProvidera format provider used for lacation specific representation
Returns
a string representation according to the provided format

Property Documentation

◆ ChildScopes

System.Collections.Generic.IEnumerable<Scope> CombinedScope.ChildScopes
get

the child scopes that make up the combined one.