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

A scope implementation that represents a parent record by its identifier. More...

Public Member Functions

 ParentScope (Guid parentId)
 Creates a new instance with an identifier of a record. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the scope into a string. 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

Guid ParentId [get]
 Hte parent records identifier. More...
 

Detailed Description

A scope implementation that represents a parent record by its identifier.

Since
Unrelesed

Constructor & Destructor Documentation

◆ ParentScope()

ParentScope.ParentScope ( Guid  parentId)

Creates a new instance with an identifier of a record.

Member Function Documentation

◆ Equals()

override bool ParentScope.Equals ( object  obj)

◆ GetHashCode()

override int ParentScope.GetHashCode ( )

◆ ToNamedStrings()

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

◆ ToString() [2/2]

string ParentScope.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 all formats a Guid supports.

Property Documentation

◆ ParentId

Guid ParentScope.ParentId
get

Hte parent records identifier.