File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Orm/Xtensive.Orm/Orm/Logging Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public void Dispose()
2525 if ( disposed )
2626 return ;
2727 disposed = true ;
28- CurrentIndentValueAsync . Value = oldIndent ;
28+ CurrentIndentLengthAsync . Value = oldIndent ;
2929 endAction ? . Invoke ( ) ;
3030 }
3131
@@ -37,23 +37,23 @@ public IndentScope(int oldIndent, Action endAction)
3737 }
3838 }
3939
40- private const int SingleIndent = 2 ;
40+ private const int SingleIndentLength = 2 ;
4141
42- private static readonly AsyncLocal < int > CurrentIndentValueAsync = new ( ) ;
42+ private static readonly AsyncLocal < int > CurrentIndentLengthAsync = new ( ) ;
4343
4444 /// <summary>
4545 /// Gets indentation for current thread.
4646 /// </summary>
47- public static int CurrentIdent => CurrentIndentValueAsync . Value ;
47+ public static int CurrentIndentLength => CurrentIndentLengthAsync . Value ;
4848
4949 /// <summary>
5050 /// Increases indentation for current thread.
5151 /// </summary>
5252 /// <returns>Indentation scope.</returns>
5353 public static IndentScope IncreaseIndent ( Action endAction = null )
5454 {
55- var oldIndent = CurrentIndentValueAsync . Value ;
56- CurrentIndentValueAsync . Value = oldIndent + SingleIndent ;
55+ var oldIndent = CurrentIndentLengthAsync . Value ;
56+ CurrentIndentLengthAsync . Value = oldIndent + SingleIndentLength ;
5757 return new IndentScope ( oldIndent , endAction ) ;
5858 }
5959 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ private static string AppendIndent(string message)
6767 {
6868 if ( string . IsNullOrEmpty ( message ) )
6969 return message ;
70- var indent = IndentManager . CurrentIdent ;
70+ var indent = IndentManager . CurrentIndentLength ;
7171 return indent > 0 ? new string ( ' ' , indent ) + message : message ;
7272 }
7373
You can’t perform that action at this time.
0 commit comments